Apache Mesos
|
An abstraction enabling any HTTP API consumer to authenticate. More...
#include <authenticatee.hpp>
Public Member Functions | |
virtual | ~Authenticatee ()=default |
virtual void | reset () |
Reset the authenticatee to its initial state. More... | |
virtual std::string | scheme () const =0 |
Name of the authentication scheme implemented. More... | |
virtual process::Future< process::http::Request > | authenticate (const process::http::Request &request, const Option< mesos::v1::Credential > &credential)=0 |
Create an HTTP request for authentication. More... | |
An abstraction enabling any HTTP API consumer to authenticate.
|
virtualdefault |
|
pure virtual |
Create an HTTP request for authentication.
Used for mutating a provided Request
with any means of authentication-related headers or other additions and changes.
request | The HTTP payload intended to be sent to an authenticated endpoint. |
credential | The principal and secret optionally used to create the authentication request. |
Implemented in mesos::http::authentication::BasicAuthenticatee.
|
inlinevirtual |
Reset the authenticatee to its initial state.
Allows the implementation to invalidate possibly cached state. This is useful if for example token-based authentication is performed and the authenticator signaled an expired token.
|
pure virtual |
Name of the authentication scheme implemented.
Implemented in mesos::http::authentication::BasicAuthenticatee.