|
Apache Mesos
|
Implements the "Basic" authentication scheme using a fixed set of credentials. More...
#include <authenticator.hpp>
Public Member Functions | |
| BasicAuthenticator (const std::string &realm, const hashmap< std::string, std::string > &credentials) | |
| ~BasicAuthenticator () override | |
| Future< AuthenticationResult > | authenticate (const http::Request &request) override |
| Authenticates the given HTTP request. More... | |
| std::string | scheme () const override |
| Returns the name of the authentication scheme implemented. More... | |
Public Member Functions inherited from process::http::authentication::Authenticator | |
| virtual | ~Authenticator () |
Implements the "Basic" authentication scheme using a fixed set of credentials.
| process::http::authentication::BasicAuthenticator::BasicAuthenticator | ( | const std::string & | realm, |
| const hashmap< std::string, std::string > & | credentials | ||
| ) |
|
override |
|
overridevirtual |
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!
Implements process::http::authentication::Authenticator.
|
overridevirtual |
Returns the name of the authentication scheme implemented.
Implements process::http::authentication::Authenticator.
1.8.11