7.1 · Exchange protocolsWorking
Issuance with OpenID4VCI
OpenID for Verifiable Credential Issuance is an exchange shaped like OAuth in which a wallet obtains credentials from an issuer. The issuer makes an offer, as a link or a quick-response (QR) code. The wallet then authorises, either through a sign-in (the authorisation code flow) or with a code the issuer has already granted (the pre-authorised code flow, optionally with a transaction code sent by another channel). Finally the wallet requests the credential, with proof of the key it should be bound to, and may ask for several copies at once.
Collecting a parcel with a notification slip.
Where it breaks:
- In the pre-authorised flow the slip may be all you need, so it must reach only you.
- The wallet chooses the key the credential is bound to.
- The issuer may decide not to trust the wallet (5.5 Wallet attestation and key attestation).
The Credential Issuer makes a Credential Offer by allowing the End-User to invoke the Wallet using the Wallet's Credential Offer Endpoint
The two flows OPENID4VCI-1.0 §3.4 OPENID4VCI-1.0 §3.5; the credential request with its proof of the key OPENID4VCI-1.0 §8.2; the issuer’s metadata the wallet reads first OPENID4VCI-1.0 §12.2; the trust between wallet and issuer OPENID4VCI-1.0 §13.3; the pre-authorised flow’s own security considerations OPENID4VCI-1.0 §13.6; and batch issuance OPENID4VCI-1.0 §14.6.
- The issuer sees the wallet’s key and, in the sign-in flow, the account used. A wallet that fetches an offer from an unknown issuer tells that issuer which wallet is installed (4.5 Who can see what, across the whole lifecycle).
- The protocol does not decide whether the person is entitled to the credential: the issuer does, before or during authorisation.
- OPENID4VCI-1.0 OpenID for Verifiable Credential Issuance 1.0