Bases: Resource
Bases: CrudManager
Manager class for manipulating identity OAuth access tokens.
alias of AccessToken
Bases: AuthConstructor
Bases: AuthMethod
OAuth based authentication method.
consumer_key (string) – Consumer key.
consumer_secret (string) – Consumer secret.
access_key (string) – Access token key.
access_secret (string) – Access token secret.
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: Resource
Represents an OAuth consumer.
id: a uuid that identifies the consumer
description: a short description of the consumer
Bases: CrudManager
Manager class for manipulating identity consumers.
Bases: object
Bases: object
Act as a proxy manager in case oauthlib is no installed.
This class will only be created if oauthlib is not in the system, trying to access any of the attributes in name (access_tokens, consumers, request_tokens), will result in a NotImplementedError, and a message.
>>> manager.access_tokens.blah
NotImplementedError: To use 'access_tokens' oauthlib must be installed
Otherwise, if trying to access an attribute other than the ones in name, the manager will state that the attribute does not exist.
>>> manager.dne.blah
AttributeError: 'OAuthManagerOptionalImportProxy' object has no
attribute 'dne'
Bases: Resource
Bases: CrudManager
Manager class for manipulating identity OAuth request tokens.
Authorize a request token with specific roles.
Utilize Identity API operation: PUT /OS-OAUTH1/authorize/$request_token_id
request_token – a request token that will be authorized, and can be exchanged for an access token.
roles – a list of roles, that will be delegated to the user.
alias of RequestToken
Parse the URL response body to retrieve the oauth token key and secret.
The response body will look like: ‘oauth_token=12345&oauth_token_secret=67890’ with ‘oauth_expires_at=2013-03-30T05:27:19.463201’ possibly there, too.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.