Bases: FederatedBaseAuth
Implement authentication plugin for OpenID Connect protocol.
OIDC or OpenID Connect is a protocol for federated authentication.
The OpenID Connect specification can be found at::
http://openid.net/specs/openid-connect-core-1_0.html
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
Authenticate with OpenID Connect and get back claims.
This is a multi-step process. First an access token must be retrieved, to do this, the username and password, the OpenID Connect client ID and secret, and the access token endpoint must be known.
Secondly, we then exchange the access token upon accessing the protected Keystone endpoint (federated auth URL). This will trigger the OpenID Connect Provider to perform a user introspection and retrieve information (specified in the scope) about the user in the form of an OpenID Connect Claim. These claims will be sent to Keystone in the form of environment variables.
session (keystoneclient.session.Session) – a session object to send out HTTP requests.
a token data representation
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: _BaseSAMLPlugin
Authentication plugin for Microsoft ADFS2.0 IdPs.
auth_url (string) – URL of the Identity Service
identity_provider (string) – name of the Identity Provider the client will authenticate against. This parameter will be used to build a dynamic URL used to obtain unscoped OpenStack token.
identity_provider_url (string) – An Identity Provider URL, where the SAML2 authentication request will be sent.
service_provider_endpoint (string) – Endpoint where an assertion is being
sent, for instance: https://host.domain/Shibboleth.sso/ADFS
username (string) – User’s login
password (string) – User’s password
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.
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: Token
Class for scoping unscoped saml2 token.
Bases: TokenMethod
Build and return request body for token scoping step.
Bases: _BaseSAMLPlugin
Implement authentication plugin for SAML2 protocol.
ECP stands for Enhanced Client or Proxy and is a SAML2 extension for federated authentication where a transportation layer consists of HTTP protocol and XML SOAP messages.
Read for more information on ECP.
Reference the SAML2 ECP specification.
Currently only HTTPBasicAuth mechanism is available for the IdP authenication.
auth_url (string) – URL of the Identity Service
identity_provider (string) – name of the Identity Provider the client will authenticate against. This parameter will be used to build a dynamic URL used to obtain unscoped OpenStack token.
identity_provider_url (string) – An Identity Provider URL, where the SAML2 authn request will be sent.
username (string) – User’s login
password (string) – User’s password
Authenticate via SAML2 protocol and retrieve unscoped token.
This is a multi-step process where a client does federated authn receives an unscoped token.
Federated authentication utilizing SAML2 Enhanced Client or Proxy
extension. See Saml2UnscopedToken_get_unscoped_token()
for more information on that step.
Upon successful authentication and assertion mapping an
unscoped token is returned and stored within the plugin object for
further use.
:param session : a session object to send out HTTP requests. :type session: keystoneclient.session.Session
an object with scoped token’s id and unscoped token json included.
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Deprecated as of the 1.7.0 release.
It may be removed in the 2.0.0 release.
Bases: AuthMethod
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.