#include <basic_authenticator_factory.hpp>
mesos::http::authentication::BasicAuthenticatorFactory::~BasicAuthenticatorFactory |
( |
| ) |
|
|
inline |
mesos::http::authentication::BasicAuthenticatorFactory::BasicAuthenticatorFactory |
( |
| ) |
|
|
inlineprotected |
Creates a basic HTTP authenticator from module parameters.
Two keys may be specified in the parameters: authentication_realm
(required) and credentials
(optional). Credentials must be provided as a string which represents a JSON array, similar to the format of the --credentials
command-line flag.
Example parameters as JSON: { "parameters": [ { "key": "authentication_realm", "value": "tatooine" }, { "key": "credentials", "value": "[ { "principal": "luke", "secret": "skywalker" } ]" } ] }
- Parameters
-
parameters | The input parameters. This object may contain two keys: authentication_realm (required) and credentials (optional). |
- Returns
- A
Try
containing a new authenticator if successful, or an Error
if unsuccessful.
Creates a basic HTTP authenticator for the specified realm, initialized with the provided credentials.
- Parameters
-
realm | The authentication realm associated with this authenticator. |
credentials | The credentials that this authenticator will use to evaluate authentication requests. |
- Returns
- A
Try
containing a new authenticator if successful, or an Error
if unsuccessful.
Creates a basic HTTP authenticator for the specified realm, initialized with the provided credentials.
- Parameters
-
realm | The authentication realm associated with this authenticator. |
credentials | The credentials that this authenticator will use to evaluate authentication requests. |
- Returns
- A
Try
containing a new authenticator if successful, or an Error
if unsuccessful.
The documentation for this class was generated from the following file: