keystoneauth1.extras.oauth1 package

keystoneauth1.extras.oauth1 package

Submodules

keystoneauth1.extras.oauth1.v3 module

Oauth authentication plugins.

Warning

This module requires installation of an extra package (oauthlib) not installed by default. Without the extra package an import error will occur. The extra package can be installed using:

$ pip install keystoneauth['oauth1']
class keystoneauth1.extras.oauth1.v3.OAuth1Method(**kwargs)

Bases: keystoneauth1.identity.v3.base.AuthMethod

OAuth based authentication method.

Parameters:
  • consumer_key (string) – Consumer key.
  • consumer_secret (string) – Consumer secret.
  • access_key (string) – Access token key.
  • access_secret (string) – Access token secret.
get_auth_data(session, auth, headers, **kwargs)

Return the authentication section of an auth plugin.

Parameters:
  • session (keystoneauth1.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.
Returns:

The identifier of this plugin and a dict of authentication data for the auth type.

Return type:

tuple(string, dict)

get_cache_id_elements()

Get the elements for this auth method that make it unique.

These elements will be used as part of the keystoneauth1.plugin.BaseIdentityPlugin.get_cache_id() to allow caching of the auth plugin.

Plugins should override this if they want to allow caching of their state.

To avoid collision or overrides the keys of the returned dictionary should be prefixed with the plugin identifier. For example the password plugin returns its username value as ‘password_username’.

class keystoneauth1.extras.oauth1.v3.OAuth1(*args, **kwargs)

Bases: keystoneauth1.identity.v3.base.AuthConstructor

Module contents

keystoneauth1.extras.oauth1.V3OAuth1Method

alias of keystoneauth1.extras.oauth1.v3.OAuth1Method

keystoneauth1.extras.oauth1.V3OAuth1

alias of keystoneauth1.extras.oauth1.v3.OAuth1

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.