keystone.models.receipt_model module¶
Unified in-memory receipt model.
- class keystone.models.receipt_model.ReceiptModel[source]¶
Bases:
object
An object that represents a receipt emitted by keystone.
This is a queryable object that other parts of keystone can use to reason about a user’s receipt.
- property expires_at¶
- property issued_at¶
- mint(receipt_id, issued_at)[source]¶
Set the
id
andissued_at
attributes of a receipt.The process of building a Receipt requires setting attributes about the partial authentication context, like
user_id
andmethods
for example. Once a Receipt object accurately represents this information it should be “minted”. Receipt are minted when they get anid
attribute and their creation time is recorded.
- property required_methods¶
- property user¶
- property user_domain¶