MCPcopy Create free account
hub / github.com/apache/arrow / IsValid

Method IsValid

cpp/src/arrow/flight/test_auth_handlers.cc:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50Status TestServerAuthHandler::IsValid(const ServerCallContext& context,
51 const std::string& token,
52 std::string* peer_identity) {
53 if (token != password_) {
54 return MakeFlightError(FlightStatusCode::Unauthenticated, "Invalid token");
55 }
56 *peer_identity = username_;
57 return Status::OK();
58}
59
60// TestServerBasicAuthHandler
61

Callers

nothing calls this directly

Calls 2

MakeFlightErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected