MCPcopy Create free account
hub / github.com/apache/impala / HandleTrustedAuthHeader

Function HandleTrustedAuthHeader

be/src/rpc/authentication.cc:750–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750static bool HandleTrustedAuthHeader(ThriftServer::ConnectionContext* connection_context,
751 const AuthenticationHash& hash, const string& auth_header) {
752 if (!GetUsernameFromBasicAuthHeader(connection_context, auth_header)) {
753 return false;
754 }
755 // Create a cookie to return.
756 connection_context->return_headers.push_back(
757 Substitute("Set-Cookie: $0",
758 GenerateCookie(connection_context->username, hash,
759 HTTP_AUTH_MECH_TRUSTED_HEADER)));
760 return true;
761}
762
763bool BasicAuth(ThriftServer::ConnectionContext* connection_context,
764 const AuthenticationHash& hash, const string& base64) {

Callers

nothing calls this directly

Calls 4

SubstituteFunction · 0.85
GenerateCookieFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected