keystone.token.providers.base module¶
- 
class keystone.token.providers.base.Provider[source]¶
- Bases: - object- Interface description for a Token provider. - 
abstract generate_id_and_issued_at(token)[source]¶
- Generate a token based on the information provided. - Parameters
- token (keystone.models.token.TokenModel) – A token object containing information about the authorization context of the request. 
- Returns
- tuple containing an ID for the token and the issued at time of the token (token_id, issued_at). 
 
 - 
abstract validate_token(token_id)[source]¶
- Validate a given token by its ID and return the token_data. - Parameters
- token_id (str) – the unique ID of the token 
- Returns
- token data as a tuple in the form of: 
 - (user_id, methods, audit_ids, system, domain_id, project_id,
- trust_id, federated_group_ids, identity_provider_id, protocol_id, access_token_id, app_cred_id, issued_at, expires_at) 
 - user_idis the unique ID of the user as a string- methodsa list of authentication methods used to obtain the token- audit_idsa list of audit IDs for the token- systema dictionary containing system scope if system-scoped- domain_idthe unique ID of the domain if domain-scoped- project_idthe unique ID of the project if project-scoped- trust_idthe unique identifier of the trust if trust-scoped- federated_group_idslist of federated group IDs- identity_provider_idunique ID of the user’s identity provider- protocol_idunique ID of the protocol used to obtain the token- access_token_idthe unique ID of the access_token for OAuth1 tokens- app_cred_idthe unique ID of the application credential- issued_ata datetime object of when the token was minted- expires_ata datetime object of when the token expires- Raises
- keystone.exception.TokenNotFound – If the token doesn’t exist. 
 
 
- 
abstract 
