7.2 · Exchange protocolsWorking
Presentation with OpenID4VP and DCQL
OpenID for Verifiable Presentations is a request and response, shaped like OAuth, in which a verifier asks a wallet for credentials. The request says what is wanted in the Digital Credentials Query Language (DCQL), down to individual claims and which issuers are acceptable. The wallet shows the person who is asking and what for, then answers with presentations bound to the verifier’s one-time value. It works on the same device, by a redirect; across devices, by a code scanned and an answer posted back; or through the browser’s credential interface.
A form that lists exactly which boxes it needs.
Where it breaks:
- The form also names who is asking, and the wallet can check that name and refuse (9.5 The verifier is checked too).
- The answer is bound to this request, so it cannot be reused for another.
The Wallet evaluates the query against the Credentials it holds and returns Presentations matching the query.
The same-device OPENID4VP-1.0 §3.1 and cross-device OPENID4VP-1.0 §3.2 flows; how the verifier is identified OPENID4VP-1.0 §5.9 and describes itself OPENID4VP-1.0 §5.11; asking for credentials from particular authorities OPENID4VP-1.0 §6.1.1; posting the answer back OPENID4VP-1.0 §8.2, encrypted OPENID4VP-1.0 §8.3; and how the verifier validates what it receives OPENID4VP-1.0 §8.6.
- The verifier sees what the wallet sends. In the cross-device flow, the answer goes to the verifier’s server, never through the device that showed the code.
- A query does not limit what a verifier may ask for: that is for the person to judge, and for the wallet to show clearly.
- OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0