keystone.models.token_model module

keystone.models.token_model module

Unified in-memory token model.

class keystone.models.token_model.TokenModel[source]

Bases: object

An object that represents a token emitted by keystone.

This is a queryable object that other parts of keystone can use to reason about a user’s authentication or authorization.

access_token
application_credential
audit_ids
domain
domain_scoped
expires_at
issued_at
mint(token_id, issued_at)[source]

Set the id and issued_at attributes of a token.

The process of building a token requires setting attributes about the authentication and authorization context, like user_id and project_id for example. Once a Token object accurately represents this information it should be “minted”. Tokens are minted when they get an id attribute and their creation time is recorded.

oauth_scoped
project
project_domain
project_scoped
roles
system_scoped
trust
trust_project
trust_project_domain
trust_scoped
trustee
trustor
unscoped
user
user_domain
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.