keystone.revoke.backends.base module

keystone.revoke.backends.base module

class keystone.revoke.backends.base.RevokeDriverBase[source]

Bases: object

Interface for recording and reporting revocation events.

abstract list_events(last_fetch=None, token=None)[source]

return the revocation events, as a list of objects.

Parameters:
  • last_fetch – Time of last fetch. Return all events newer.

  • token – 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

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.

abstract revoke(event)[source]

register a revocation event.

Parameters:

event – An instance of keystone.revoke.model.RevocationEvent

keystone.revoke.backends.base.revoked_before_cutoff_time()[source]
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.