AttestoPhoenix. Controller. DeferredCredentialController
(AttestoPhoenix v2.7.0)
Copy Markdown
View Source
OID4VCI Deferred Credential Endpoint (draft-ietf-oauth-openid4vci §9).
Completes a credential whose issuance was deferred at the Credential
endpoint. The wallet polls this endpoint with the same access token and the
transaction_id it was given at deferral, protected exactly like the
Credential endpoint (RFC 6750 bearer token via
AttestoPhoenix.ProtectedResource). Issuance completion is host policy
through :build_deferred_credential; the library owns access-token
verification and SD-JWT VC signing/response framing.
Summary
Functions
Complete a deferred credential for an authenticated wallet.
Functions
@spec create(Plug.Conn.t(), map()) :: Plug.Conn.t()
Complete a deferred credential for an authenticated wallet.
Returns the same immediate-issuance response shape as the Credential
endpoint (Attesto.CredentialResponse.build/2) once the host reports the
credential is ready. {:error, :issuance_pending} from the host's
:build_deferred_credential callback is reported as the OID4VCI
issuance_pending error (status 400) so the wallet retries later; any
other host error maps to invalid_credential_request.