Apache Mesos
Classes | Functions
process::http::authentication Namespace Reference

Classes

struct  Principal
 Contains information associated with an authenticated principal. More...
 
struct  AuthenticationResult
 Represents the result of authenticating a request. More...
 
class  Authenticator
 The Authenticator interface allows us to implement different authenticators based on the scheme (e.g. More...
 
class  BasicAuthenticator
 Implements the "Basic" authentication scheme using a fixed set of credentials. More...
 
class  JWTError
 
class  JWT
 A JSON Web Token (JWT) implementation. More...
 
class  AuthenticatorManager
 

Functions

std::ostream & operator<< (std::ostream &stream, const Principal &principal)
 
Future< NothingsetAuthenticator (const std::string &realm, Owned< Authenticator > authenticator)
 Sets (or overwrites) the authenticator for the realm. More...
 
Future< NothingunsetAuthenticator (const std::string &realm)
 Unsets the authenticator for the realm. More...
 
std::ostream & operator<< (std::ostream &stream, const JWT &jwt)
 

Function Documentation

std::ostream& process::http::authentication::operator<< ( std::ostream &  stream,
const Principal &  principal 
)
std::ostream& process::http::authentication::operator<< ( std::ostream &  stream,
const JWT &  jwt 
)
Future<Nothing> process::http::authentication::setAuthenticator ( const std::string &  realm,
Owned< Authenticator >  authenticator 
)

Sets (or overwrites) the authenticator for the realm.

Every incoming HTTP request to an endpoint associated with the realm will be authenticated with the given authenticator.

Future<Nothing> process::http::authentication::unsetAuthenticator ( const std::string &  realm)

Unsets the authenticator for the realm.

Any endpoint mapped to the realm will no longer be authenticated.