keystone.revoke package

Submodules

keystone.revoke.controllers module

class keystone.revoke.controllers.RevokeController(*args, **kwargs)[source]

Bases: keystone.common.controller.V3Controller

list_revoke_events(context, *args, **kwargs)[source]

keystone.revoke.core module

Main entry point into the Revoke service.

class keystone.revoke.core.Manager(*args, **kwargs)[source]

Bases: keystone.common.manager.Manager

Default pivot point for the Revoke backend.

Performs common logic for recording revocations.

See keystone.common.manager.Manager for more details on how this dynamically calls the backend.

check_token(*args, **kwargs)[source]

Checks the values from a token against the revocation list

Parameters:token_values – dictionary of values from a token, normalized for differences between v2 and v3. The checked values are a subset of the attributes of model.TokenEvent
Raises keystone.exception.TokenNotFound:
 If the token is invalid.
driver_namespace = 'keystone.revoke'
revoke(*args, **kwargs)[source]
revoke_by_audit_chain_id(*args, **kwargs)[source]
revoke_by_audit_id(*args, **kwargs)[source]
revoke_by_domain_role_assignment(*args, **kwargs)[source]
revoke_by_expiration(*args, **kwargs)[source]
revoke_by_grant(*args, **kwargs)[source]
revoke_by_project_role_assignment(*args, **kwargs)[source]
revoke_by_user(*args, **kwargs)[source]
revoke_by_user_and_project(*args, **kwargs)[source]
class keystone.revoke.core.RevokeDriverV8[source]

Bases: object

Interface for recording and reporting revocation events.

list_events(last_fetch=None)[source]

return the revocation events, as a list of objects

Parameters:last_fetch – Time of last fetch. Return all events newer.
Returns:A list of keystone.revoke.model.RevokeEvent newer than last_fetch. If no last_fetch is specified, returns all events for tokens issued after the expiration cutoff.
revoke(event)[source]

register a revocation event

Parameters:event – An instance of keystone.revoke.model.RevocationEvent
keystone.revoke.core.revoked_before_cutoff_time()[source]

keystone.revoke.model module

keystone.revoke.routers module

class keystone.revoke.routers.Routers[source]

Bases: keystone.common.wsgi.RoutersBase

PATH_PREFIX = '/OS-REVOKE'
append_v3_routers(mapper, routers)[source]

Module contents