keystone.models.receipt_model module¶
Unified in-memory receipt model.
- class keystone.models.receipt_model.ReceiptModel[source]¶
Bases:
objectAn 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
idandissued_atattributes of a receipt.The process of building a Receipt requires setting attributes about the partial authentication context, like
user_idandmethodsfor example. Once a Receipt object accurately represents this information it should be “minted”. Receipt are minted when they get anidattribute and their creation time is recorded.
- property required_methods¶
- property user¶
- property user_domain¶