Bases: object
Base class for authentication plugins.
An authentication plugin needs to override at least the authenticate method to be a valid plugin.
Authenticate using plugin defined method.
The method usually analyses self.opts and performs a request to authentication server.
Parameters: | http_client (HTTPClient) – client object that needs authentication |
---|---|
Raises: | AuthorizationFailure |
Return option name and value.
Parameters: |
|
---|
Parse the actual auth-system options if any.
This method is expected to populate the attribute self.opts with a dict containing the options and values needed to make authentication.
Check if all required options are present.
Raises: | AuthPluginOptionsMissing |
---|
Return token and endpoint.
Parameters: |
|
---|---|
Returns: | tuple of token and endpoint strings |
Raises: | EndpointException |
Discover the available auth-systems.
This won’t take into account the old style auth-systems.