| 48 | } |
| 49 | |
| 50 | Status 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 |
nothing calls this directly
no test coverage detected