keystone.oauth1.backends.base.
Oauth1DriverBase
[source]¶Bases: object
Interface description for an OAuth1 driver.
Authorize request token.
Parameters: |
|
---|---|
Returns: | verifier |
create_access_token
(request_id, access_token_duration)[source]¶Create access token.
Parameters: |
|
---|---|
Returns: | access_token_ref |
create_consumer
(consumer_ref)[source]¶Create consumer.
Parameters: | consumer_ref (dict) – consumer ref with consumer name |
---|---|
Returns: | consumer_ref |
create_request_token
(consumer_id, requested_project, request_token_duration)[source]¶Create request token.
Parameters: |
|
---|---|
Returns: | request_token_ref |
delete_access_token
(user_id, access_token_id)[source]¶Delete access token.
Parameters: |
|
---|---|
Returns: | None |
delete_consumer
(consumer_id)[source]¶Delete consumer.
Parameters: | consumer_id (string) – id of consumer to get |
---|---|
Returns: | None. |
get_access_token
(access_token_id)[source]¶Get access token.
Parameters: | access_token_id (string) – the id of the access token |
---|---|
Returns: | access_token_ref |
get_consumer
(consumer_id)[source]¶Get consumer, returns the consumer id (key) and description.
Parameters: | consumer_id (string) – id of consumer to get |
---|---|
Returns: | 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.
Parameters: | consumer_id (string) – id of consumer to get |
---|---|
Returns: | consumer_ref containing consumer secret |
get_request_token
(request_token_id)[source]¶Get request token.
Parameters: | request_token_id (string) – the id of the request token |
---|---|
Returns: | request_token_ref |
keystone.oauth1.backends.sql.
AccessToken
(*args, **kwargs)[source]¶Bases: sqlalchemy.ext.declarative.api.Base
, keystone.common.sql.core.ModelDictMixin
access_secret
¶attributes
= ['id', 'access_secret', 'authorizing_user_id', 'project_id', 'role_ids', 'consumer_id', 'expires_at']¶consumer_id
¶expires_at
¶id
¶project_id
¶role_ids
¶keystone.oauth1.backends.sql.
Consumer
(*args, **kwargs)[source]¶Bases: sqlalchemy.ext.declarative.api.Base
, keystone.common.sql.core.ModelDictMixinWithExtras
attributes
= ['id', 'description', 'secret']¶description
¶extra
¶id
¶secret
¶keystone.oauth1.backends.sql.
OAuth1
[source]¶Bases: keystone.oauth1.backends.base.Oauth1DriverBase
keystone.oauth1.backends.sql.
RequestToken
(*args, **kwargs)[source]¶Bases: sqlalchemy.ext.declarative.api.Base
, keystone.common.sql.core.ModelDictMixin
attributes
= ['id', 'request_secret', 'verifier', 'authorizing_user_id', 'requested_project_id', 'role_ids', 'consumer_id', 'expires_at']¶consumer_id
¶expires_at
¶id
¶request_secret
¶requested_project_id
¶role_ids
¶verifier
¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.