Bases: BaseAuth
Identity V3 Authentication Plugin.
auth_url (string) – Identity service endpoint for authentication.
auth_methods (List) – A collection of methods to authenticate with.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
include_catalog (bool) – Include the service catalog in the returned token. (optional) default True.
unscoped (bool) – Force the return of an unscoped token. This will make the keystone server return an unscoped token even if a default_project_id is set for this user.
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.
Bases: Auth
Abstract base class for creating an Auth Plugin.
The Auth Plugin created contains only one authentication method. This is generally the required usage.
An AuthConstructor creates an AuthMethod based on the method’s arguments and the auth_method_class defined by the plugin. It then creates the auth plugin with only that authentication method.
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.
session (keystoneclient.session.Session) – The communication session.
auth (base.Auth) – The auth plugin calling the method.
headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them.
The identifier of this plugin and a dict of authentication data for the auth type.
tuple(string, dict)
Bases: BaseIdentityPlugin
Identity V3 Authentication Plugin.
auth_url (string) – Identity service endpoint for authentication.
auth_methods (List) – A collection of methods to authenticate with.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
include_catalog (bool) – Include the service catalog in the returned token. (optional) default True.
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
The full URL where we will send authentication data.
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: BaseAuth
Full URL where authorization data is sent.
Authenticate retrieve token information.
This is a multi-step process where a client does federated authn receives an unscoped token.
If an unscoped token is successfully received and scoping information is present then the token is rescoped to that target.
session (keystoneclient.session.Session) – a session object to send out HTTP requests.
a token data representation
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
Fetch unscoped federated token.
Bases: AuthConstructor
A plugin for authenticating with a username and password.
auth_url (string) – Identity service endpoint for authentication.
password (string) – Password for authentication.
username (string) – Username for authentication.
user_id (string) – User ID for authentication.
user_domain_id (string) – User’s domain ID for authentication.
user_domain_name (string) – User’s domain name for authentication.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
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: AuthMethod
Construct a User/Password based authentication method.
password (string) – Password for authentication.
username (string) – Username for authentication.
user_id (string) – User ID for authentication.
user_domain_id (string) – User’s domain ID for authentication.
user_domain_name (string) – User’s domain name for authentication.
Return the authentication section of an auth plugin.
session (keystoneclient.session.Session) – The communication session.
auth (base.Auth) – The auth plugin calling the method.
headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them.
The identifier of this plugin and a dict of authentication data for the auth type.
tuple(string, dict)
Bases: AuthConstructor
A plugin for authenticating with an existing Token.
auth_url (string) – Identity service endpoint for authentication.
token (string) – Token for authentication.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
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: AuthMethod
Construct an Auth plugin to fetch a token from a token.
token (string) – Token for authentication.
Return the authentication section of an auth plugin.
session (keystoneclient.session.Session) – The communication session.
auth (base.Auth) – The auth plugin calling the method.
headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them.
The identifier of this plugin and a dict of authentication data for the auth type.
tuple(string, dict)
Bases: BaseAuth
Identity V3 Authentication Plugin.
auth_url (string) – Identity service endpoint for authentication.
auth_methods (List) – A collection of methods to authenticate with.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
include_catalog (bool) – Include the service catalog in the returned token. (optional) default True.
unscoped (bool) – Force the return of an unscoped token. This will make the keystone server return an unscoped token even if a default_project_id is set for this user.
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.
Bases: Auth
Abstract base class for creating an Auth Plugin.
The Auth Plugin created contains only one authentication method. This is generally the required usage.
An AuthConstructor creates an AuthMethod based on the method’s arguments and the auth_method_class defined by the plugin. It then creates the auth plugin with only that authentication method.
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.
session (keystoneclient.session.Session) – The communication session.
auth (base.Auth) – The auth plugin calling the method.
headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them.
The identifier of this plugin and a dict of authentication data for the auth type.
tuple(string, dict)
Bases: BaseIdentityPlugin
Identity V3 Authentication Plugin.
auth_url (string) – Identity service endpoint for authentication.
auth_methods (List) – A collection of methods to authenticate with.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
include_catalog (bool) – Include the service catalog in the returned token. (optional) default True.
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
The full URL where we will send authentication data.
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: BaseAuth
Full URL where authorization data is sent.
Authenticate retrieve token information.
This is a multi-step process where a client does federated authn receives an unscoped token.
If an unscoped token is successfully received and scoping information is present then the token is rescoped to that target.
session (keystoneclient.session.Session) – a session object to send out HTTP requests.
a token data representation
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
Fetch unscoped federated token.
Bases: AuthConstructor
A plugin for authenticating with a username and password.
auth_url (string) – Identity service endpoint for authentication.
password (string) – Password for authentication.
username (string) – Username for authentication.
user_id (string) – User ID for authentication.
user_domain_id (string) – User’s domain ID for authentication.
user_domain_name (string) – User’s domain name for authentication.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
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: AuthMethod
Construct a User/Password based authentication method.
password (string) – Password for authentication.
username (string) – Username for authentication.
user_id (string) – User ID for authentication.
user_domain_id (string) – User’s domain ID for authentication.
user_domain_name (string) – User’s domain name for authentication.
Return the authentication section of an auth plugin.
session (keystoneclient.session.Session) – The communication session.
auth (base.Auth) – The auth plugin calling the method.
headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them.
The identifier of this plugin and a dict of authentication data for the auth type.
tuple(string, dict)
Bases: AuthConstructor
A plugin for authenticating with an existing Token.
auth_url (string) – Identity service endpoint for authentication.
token (string) – Token for authentication.
trust_id (string) – Trust ID for trust scoping.
domain_id (string) – Domain ID for domain scoping.
domain_name (string) – Domain name for domain scoping.
project_id (string) – Project ID for project scoping.
project_name (string) – Project name for project scoping.
project_domain_id (string) – Project’s domain ID for project.
project_domain_name (string) – Project’s domain name for project.
reauthenticate (bool) – Allow fetching a new token if the current one is going to expire. (optional) default True
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: AuthMethod
Construct an Auth plugin to fetch a token from a token.
token (string) – Token for authentication.
Return the authentication section of an auth plugin.
session (keystoneclient.session.Session) – The communication session.
auth (base.Auth) – The auth plugin calling the method.
headers (dict) – The headers that will be sent with the auth request if a plugin needs to add to them.
The identifier of this plugin and a dict of authentication data for the auth type.
tuple(string, dict)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.