keystone.token.persistence.backends package

keystone.token.persistence.backends package

Submodules

keystone.token.persistence.backends.sql module

class keystone.token.persistence.backends.sql.Token[source]

Bases: keystone.token.persistence.core.TokenDriverBase

create_token(token_id, data)[source]
delete_token(token_id)[source]
delete_tokens(user_id, tenant_id=None, trust_id=None, consumer_id=None)[source]

Delete all tokens in one session.

The user_id will be ignored if the trust_id is specified. user_id will always be specified. If using a trust, the token’s user_id is set to the trustee’s user ID or the trustor’s user ID, so will use trust_id to query the tokens.

flush_expired_tokens()[source]
get_token(token_id)[source]
list_revoked_tokens()[source]
class keystone.token.persistence.backends.sql.TokenModel(*args, **kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.ModelDictMixinWithExtras

attributes = [‘id’, ‘expires’, ‘user_id’, ‘trust_id’]
expires
extra
id
trust_id
user_id
valid

Module contents

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.