Apache Mesos
|
The Authenticator interface allows us to implement different authenticators based on the scheme (e.g. More...
#include <authenticator.hpp>
Public Member Functions | |
virtual | ~Authenticator () |
virtual Future< AuthenticationResult > | authenticate (const Request &request)=0 |
Authenticates the given HTTP request. More... | |
virtual std::string | scheme () const =0 |
Returns the name of the authentication scheme implemented. More... | |
The Authenticator interface allows us to implement different authenticators based on the scheme (e.g.
Basic, Digest, SPNEGO).
|
inlinevirtual |
|
pure virtual |
Authenticates the given HTTP request.
NOTE: Libprocess does not perform any timeout handling of the returned future, it is thus required that this future is satisfied within a finite amount of time! Otherwise, the socket will be remain open indefinitely!
Implemented in process::http::authentication::BasicAuthenticator, and mesos::http::authentication::CombinedAuthenticator.
|
pure virtual |
Returns the name of the authentication scheme implemented.
Implemented in process::http::authentication::BasicAuthenticator, and mesos::http::authentication::CombinedAuthenticator.