keystone.oauth1.backends.base.
Oauth1DriverBase
[source]¶Bases: object
Interface description for an OAuth1 driver.
Authorize request token.
request_token_id (string) – the id of the request token, to be authorized
user_id (string) – the id of the authorizing user
role_ids (list) – list of role ids to authorize
verifier
create_access_token
(request_id, access_token_duration)[source]¶Create access token.
request_id (string) – the id of the request token, to be deleted
access_token_duration (string) – duration of an access token
access_token_ref
create_consumer
(consumer_ref)[source]¶Create consumer.
consumer_ref (dict) – consumer ref with consumer name
consumer_ref
create_request_token
(consumer_id, requested_project, request_token_duration)[source]¶Create request token.
consumer_id (string) – the id of the consumer
requested_project_id (string) – requested project id
request_token_duration (string) – duration of request token
request_token_ref
delete_access_token
(user_id, access_token_id)[source]¶Delete access token.
user_id (string) – authorizing user id
access_token_id (string) – access token to delete
None
delete_consumer
(consumer_id)[source]¶Delete consumer.
consumer_id (string) – id of consumer to get
None.
get_access_token
(access_token_id)[source]¶Get access token.
access_token_id (string) – the id of the access token
access_token_ref
get_consumer
(consumer_id)[source]¶Get consumer, returns the consumer id (key) and description.
consumer_id (string) – id of consumer to get
consumer_ref
get_consumer_with_secret
(consumer_id)[source]¶Like get_consumer(), but also returns consumer secret.
Returned dictionary consumer_ref includes consumer secret. Secrets should only be shared upon consumer creation; the consumer secret is required to verify incoming OAuth requests.
consumer_id (string) – id of consumer to get
consumer_ref containing consumer secret
get_request_token
(request_token_id)[source]¶Get request token.
request_token_id (string) – the id of the request token
request_token_ref
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.