Bases: BaseIdentityPlugin
An identity plugin that is not version dependent.
Internally we will construct a version dependent plugin with the resolved URL and then proxy all calls from the base plugin to the versioned one.
Create a plugin from the given parameters.
This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs.
session (keystoneclient.session.Session) – A session object.
version (tuple) – A tuple of the API version at the URL.
url (string) – The base URL for this version.
raw_status (string) – The status that was in the discovery field.
A plugin that can match the parameters or None if nothing.
Obtain a token from an OpenStack Identity Service.
This method is overridden by the various token version plugins.
This method should not be called independently and is expected to be invoked via the do_authenticate() method.
This method will be invoked if the AccessInfo 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().
session (keystoneclient.session.Session) – A session object that can be used for communication.
keystoneclient.exceptions.InvalidResponse – The response returned wasn’t appropriate.
keystoneclient.exceptions.HttpError – An error from an invalid HTTP response.
Token access information.
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: Password
A Plugin that provides typical authentication options for CLIs.
This plugin provides standard username and password authentication options as well as allowing users to override with a custom token and endpoint.
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.
session (keystoneclient.session.Session) – A session object that can be used for communication.
service_type (string) – The type of service to lookup the endpoint for. This plugin will return None (failure) if service_type is not provided.
interface (string) – The exposure of the endpoint. Should be public, internal, admin, or auth. auth is special here to use the auth_url rather than a URL extracted from the service catalog. Defaults to public.
region_name (string) – The region the endpoint should exist in. (optional)
service_name (string) – The name of the service in the catalog. (optional)
version (tuple) – The minimum version number required for this endpoint. (optional)
keystoneclient.exceptions.HttpError – An error from an invalid HTTP response.
A valid endpoint URL or None if not available.
string or None
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Return a valid auth token.
If a valid token is not present then a new one will be fetched.
session (keystoneclient.session.Session) – A session object that can be used for communication.
keystoneclient.exceptions.HttpError – An error from an invalid HTTP response.
A valid token.
string
Load a specific plugin object from an argparse result.
Convert the results of a parse into the specified plugin.
namespace (argparse.Namespace) – The result from CLI parsing.
An auth plugin, or None if a name is not provided.
Bases: BaseGenericPlugin
A common user/password authentication plugin.
username (string) – Username for authentication.
user_id (string) – User ID for authentication.
password (string) – Password for authentication.
user_domain_id (string) – User’s domain ID for authentication.
user_domain_name (string) – User’s domain name for authentication.
Create a plugin from the given parameters.
This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs.
session (keystoneclient.session.Session) – A session object.
version (tuple) – A tuple of the API version at the URL.
url (string) – The base URL for this version.
raw_status (string) – The status that was in the discovery field.
A plugin that can match the parameters or None if nothing.
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Load a specific plugin object from an argparse result.
Convert the results of a parse into the specified plugin.
namespace (argparse.Namespace) – The result from CLI parsing.
An auth plugin, or None if a name is not provided.
Bases: BaseGenericPlugin
Generic token auth plugin.
token (string) – Token for authentication.
Create a plugin from the given parameters.
This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs.
session (keystoneclient.session.Session) – A session object.
version (tuple) – A tuple of the API version at the URL.
url (string) – The base URL for this version.
raw_status (string) – The status that was in the discovery field.
A plugin that can match the parameters or None if nothing.
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Bases: BaseIdentityPlugin
An identity plugin that is not version dependent.
Internally we will construct a version dependent plugin with the resolved URL and then proxy all calls from the base plugin to the versioned one.
Create a plugin from the given parameters.
This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs.
session (keystoneclient.session.Session) – A session object.
version (tuple) – A tuple of the API version at the URL.
url (string) – The base URL for this version.
raw_status (string) – The status that was in the discovery field.
A plugin that can match the parameters or None if nothing.
Obtain a token from an OpenStack Identity Service.
This method is overridden by the various token version plugins.
This method should not be called independently and is expected to be invoked via the do_authenticate() method.
This method will be invoked if the AccessInfo 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().
session (keystoneclient.session.Session) – A session object that can be used for communication.
keystoneclient.exceptions.InvalidResponse – The response returned wasn’t appropriate.
keystoneclient.exceptions.HttpError – An error from an invalid HTTP response.
Token access information.
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: BaseGenericPlugin
A common user/password authentication plugin.
username (string) – Username for authentication.
user_id (string) – User ID for authentication.
password (string) – Password for authentication.
user_domain_id (string) – User’s domain ID for authentication.
user_domain_name (string) – User’s domain name for authentication.
Create a plugin from the given parameters.
This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs.
session (keystoneclient.session.Session) – A session object.
version (tuple) – A tuple of the API version at the URL.
url (string) – The base URL for this version.
raw_status (string) – The status that was in the discovery field.
A plugin that can match the parameters or None if nothing.
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Load a specific plugin object from an argparse result.
Convert the results of a parse into the specified plugin.
namespace (argparse.Namespace) – The result from CLI parsing.
An auth plugin, or None if a name is not provided.
Bases: BaseGenericPlugin
Generic token auth plugin.
token (string) – Token for authentication.
Create a plugin from the given parameters.
This function will be called multiple times with the version and url of a potential endpoint. If a plugin can be constructed that fits the params then it should return it. If not return None and then another call will be made with other available URLs.
session (keystoneclient.session.Session) – A session object.
version (tuple) – A tuple of the API version at the URL.
url (string) – The base URL for this version.
raw_status (string) – The status that was in the discovery field.
A plugin that can match the parameters or None if nothing.
Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
A list of Param objects describing available plugin parameters.
List
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.