Provide authentication
Obtains auth data and decorates a request with that.
Parameters: |
|
---|---|
Returns: | a Tuple (url, headers, body) |
Clear access cache
Can be called to clear the access cache so that next request will fetch a new token and base_url.
Alternate auth data on next request
Configure auth provider to provide alt authentication data on a part of the next auth_request. If credentials are None, set invalid data.
Parameters: |
|
---|
Set of credentials for accessing OpenStack services
ATTRIBUTES: list of valid class attributes representing credentials.
Provides authentication based on the Identity V2 API
The Keystone Identity V2 API defines both unscoped and project scoped tokens. This auth provider only implements 'project'.
Base URL from catalog
Parameters: | filters -- Used to filter results |
---|
Filters can be:
service: service type name such as compute, image, etc.
region: service region name
name: service name, only if service exists
adminURL, publicURL, internalURL
api_version: the version of api used to replace catalog version
skip_path: skips the suffix path of the url and uses base URL
Return type: | string |
---|---|
Returns: | url with filters applied |
Provides authentication based on the Identity V3 API
Base URL from catalog
If scope is not 'project', it may be that there is not catalog in the auth_data. In such case, as long as the requested service is 'identity', we can use the original auth URL to build the base_url.
Parameters: | filters -- Used to filter results |
---|
Filters can be:
service: service type name such as compute, image, etc.
region: service region name
name: service name, only if service exists
adminURL, publicURL, internalURL
api_version: the version of api used to replace catalog version
skip_path: skips the suffix path of the url and uses base URL
Return type: | string |
---|---|
Returns: | url with filters applied |
Credentials suitable for the Keystone Identity V3 API
Check of credentials (no API call)
Valid combinations of v3 credentials (excluding token) - User id, password (optional domain) - User name, password and its domain id/name For the scope, valid combinations are: - None - Project id (optional domain) - Project name and its domain id/name - Domain id - Domain name
Builds a credentials object based on the configured auth_version
Parameters: |
|
---|
Examples:
Returns credentials from the provided parameters: >>> get_credentials(username='foo', password='bar')
Returns credentials including IDs: >>> get_credentials(username='foo', password='bar', fill_in=True)