keystone.receipt.provider module

Receipt provider interface.

class keystone.receipt.provider.Manager[source]

Bases: Manager

Default pivot point for the receipt provider backend.

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

driver_namespace: str = 'keystone.receipt.provider'
issue_receipt(user_id, method_names, expires_at=None)[source]
validate_receipt(receipt_id, window_seconds=0)[source]
keystone.receipt.provider.default_expire_time()[source]

Determine when a fresh receipt should expire.

Expiration time varies based on configuration (see [receipt] expiration).

Returns:

a naive UTC datetime.datetime object