Skip to content

Instantly share code, notes, and snippets.

@termie
Last active December 15, 2015 05:39
Show Gist options
  • Select an option

  • Save termie/5210803 to your computer and use it in GitHub Desktop.

Select an option

Save termie/5210803 to your computer and use it in GitHub Desktop.
# So, how this all looks in the db:
# id = some_id
# user_id = some_user_id
# expires = some_expiration
# extras = {'user': {'id': some_used_id},
# 'tenant': {'id': some_tenant_id},
# 'token_data': 'token': {'domain': {'id': some_domain_id},
# 'project': {'id': some_project_id},
# 'domain': {'id': some_domain_id},
# 'user': {'id': some_user_id},
# 'roles': [{'id': some_role_id}, ...],
# 'catalog': ...,
# 'expires_at': some_expiry_time,
# 'issued_at': now(),
# 'methods': ['password', 'token'],
# 'extras': { ... empty? ...}
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment