The keystone.token.backends.sql Module

class keystone.token.backends.sql.Token

Bases: keystone.common.sql.core.Base, keystone.token.core.Driver

create_token(token_id, data)
delete_token(token_id)
delete_tokens(user_id, tenant_id=None, trust_id=None)

Deletes 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.

get_token(token_id)
list_revoked_tokens()
list_tokens(user_id, tenant_id=None, trust_id=None)
class keystone.token.backends.sql.TokenModel(*args, **kwargs)

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

attributes = ['id', 'expires', 'user_id', 'trust_id']
expires
extra
id
trust_id
user_id
valid

Previous topic

The keystone.token.backends.memcache Module

Next topic

The keystone.token.controllers Module

This Page