Bases: keystoneclient.auth.base.BaseAuthPlugin
Fetch or return a current AccessInfo object.
If a valid AccessInfo is present then it is returned otherwise a new one will be fetched.
Raises HttpError: | |
---|---|
An error from an invalid HTTP response. | |
Returns AccessInfo: | |
Valid AccessInfo |
Obtain a token from an OpenStack Identity Service.
This method is overridden by the various token version plugins.
This function should not be called independently and is expected to be invoked via the do_authenticate function.
This function will be invoked if the AcessInfo object cached by the plugin is not valid. Thus plugins should always fetch a new AccessInfo when invoked. If you are looking to just retrieve the current auth data then you should use get_access.
Raises HttpError: | |
---|---|
An error from an invalid HTTP response. | |
Returns AccessInfo: | |
Token access information. |
Return a valid endpoint for a service.
If a valid token is not present then a new one will be fetched using the session and kwargs.
Parameters: |
|
---|---|
Raises HttpError: | |
An error from an invalid HTTP response. |
|
Return string or None: | |
A valid endpoint URL or None if not available. |
Return a valid auth token.
If a valid token is not present then a new one will be fetched.
Raises HttpError: | |
---|---|
An error from an invalid HTTP response. | |
Return string: | A valid token. |
Bases: keystoneclient.auth.identity.base.BaseIdentityPlugin
Return the authentication section of an auth plugin.
Parameters: | headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them. |
---|---|
Return dict: | A dict of authentication data for the auth type. |
Bases: keystoneclient.auth.identity.v2.Auth
Bases: keystoneclient.auth.identity.v2.Auth
Bases: keystoneclient.auth.identity.base.BaseIdentityPlugin
The full URL where we will send authentication data.
Bases: object
One part of a V3 Authentication strategy.
V3 Tokens allow multiple methods to be presented when authentication against the server. Each one of these methods is implemented by an AuthMethod.
Note: When implementing an AuthMethod use the method_parameters and do not use positional arguments. Otherwise they can’t be picked up by the factory method and don’t work as well with AuthConstructors.
Return the authentication section of an auth plugin.
Parameters: |
|
---|---|
Return tuple(string, dict): | |
The identifier of this plugin and a dict of authentication data for the auth type. |
Bases: keystoneclient.auth.identity.v3._AuthConstructor
Bases: keystoneclient.auth.identity.v3.AuthMethod
Bases: keystoneclient.auth.identity.v3._AuthConstructor
Bases: keystoneclient.auth.identity.v3.AuthMethod