- class keystone.receipt.providers.fernet.core.Provider(*args, **kwargs)¶
Generate a receipt based on the information provided.
receipt (keystone.models.receipt.ReceiptModel) – A receipt object containing information about the authorization context of the request.
tuple containing an ID for the receipt and the issued at time of the receipt (receipt_id, issued_at).
Validate a given receipt by its ID and return the receipt_data.
receipt_id (str) – the unique ID of the receipt
receipt data as a tuple in the form of:
(user_id, methods, issued_at, expires_at)
user_idis the unique ID of the user as a string
methodsa list of authentication methods used to obtain the receipt
issued_ata datetime object of when the receipt was minted
expires_ata datetime object of when the receipt expires
keystone.exception.ReceiptNotFound – when receipt doesn’t exist.