The base identity plugin. Identity plugins must define the authorize method. For examples of this class, see the v2 and v3 authentication plugins.
Create an identity authorization plugin.
Parameters: |
|
---|
Consider a token valid if it does not expire for this many seconds
Obtain access information from an OpenStack Identity Service.
Thus method will authenticate and fetch a new AccessInfo when invoked.
Parameters: | transport (Transport) – A transport object for the authenticator. |
---|---|
Raises: |
|
Returns AccessInfo: | |
Token access information. |
Return a valid auth token.
If a valid token is not present then a new one will be fetched.
Parameters: | transport (Transport) – A transport object for the authenticator. |
---|---|
Raises HttpError: | |
An error from an invalid HTTP response. | |
Return string: | A valid token. |
Fetch or return a current AccessInfo object.
If a valid AccessInfo is present then it is returned otherwise a new one will be fetched.
Parameters: | transport (Transport) – A transport object for the authenticator. |
---|---|
Raises HttpError: | |
An error from an invalid HTTP response. | |
Returns AccessInfo: | |
Valid AccessInfo |
Invalidate the current authentication data.
This should result in fetching a new token on next call.
A plugin may be invalidated if an Unauthorized HTTP response is returned to indicate that the token may have been revoked or is otherwise now invalid.
Returns bool: | True if there was something that the plugin did to invalidate. This means that it makes sense to try again. If nothing happens returns False to indicate give up. |
---|
Return a valid endpoint for a service.
If a valid token is not present then a new one will be fetched using the transport.
Parameters: |
|
---|---|
Raises HttpError: | |
An error from an invalid HTTP response. |
|
Return string or None: | |
A valid endpoint URL or None if not available. |
Return the valid versions for the given service.
Parameters: |
|
---|---|
Returns list: | Returns list of versions that match the filter. |