AttestoPhoenix. Controller. CredentialOfferController
(AttestoPhoenix v2.9.0)
Copy Markdown
View Source
OID4VCI by-reference Credential Offer endpoint
(draft-ietf-oauth-openid4vci §4.1.3).
Serves the stored Credential Offer object a wallet dereferences from a
credential_offer_uri. The offer is created and stored elsewhere - by the
host, through Attesto.CredentialOffer.store_by_reference/3, which generates
the unguessable id it embeds in the link - when it hands the wallet the offer
link; this endpoint only serves the document back, non-consuming, until it
expires or is unknown. Because the endpoint is unauthenticated and the offer
may carry a redeemable pre-authorized_code, that generated id is the sole
capability protecting it - hosts must not mint their own.
Summary
Functions
Serve the stored Credential Offer object for :id.
Functions
@spec show(Plug.Conn.t(), map()) :: Plug.Conn.t()
Serve the stored Credential Offer object for :id.