Main entry point into the Token service.
Bases: object
Interface description for a Token driver.
Create a token by id and data.
| Parameters: |
|
|---|
{
expires=''
id=token_id,
user=user_ref,
tenant=tenant_ref,
metadata=metadata_ref
}
| Returns: | token_ref or None. |
|---|
Deletes a token by id.
| Parameters: | token_id (string) – identity of the token |
|---|---|
| Returns: | None. |
| Raises : | keystone.exception.TokenNotFound |
Get a token by id.
| Parameters: | token_id (string) – identity of the token |
|---|---|
| Returns: | token_ref |
| Raises : | keystone.exception.TokenNotFound |
Returns a list of current token_id’s for a user
| Parameters: | user_id (string) – identity of the user |
|---|---|
| Returns: | list of token_id’s |
Invalidates all tokens held by a user (optionally for a tenant).
| Raises : | keystone.exception.UserNotFound, keystone.exception.TenantNotFound |
|---|
Bases: keystone.common.manager.Manager
Default pivot point for the Token backend.
See keystone.common.manager.Manager for more details on how this dynamically calls the backend.
Invalidates all tokens held by a user (optionally for a tenant).
If a specific tenant ID is not provided, all tokens held by user will be revoked.