7.3 · Exchange protocolsWorking
The browser and operating system: the Digital Credentials API
The Digital Credentials application programming interface (API) is how a web page asks the browser for a credential, and the browser and operating system hand the request to a wallet the person picks. The page never talks to the wallet directly: the platform shows its own prompt and passes back the response. Presentation protocols, such as OpenID for Verifiable Presentations and the mobile-document online format, run over it.
Build the session transcript of a request made through the browser, from OpenID4VP’s own example, and watch a recorded response fail in another session.
Asking at a hotel desk, which phones your room on your behalf.
Where it breaks:
- The desk sees who asked.
- The platform’s prompt, not the website’s, is what the person relies on.
This document defines an API enabling a website to request presentation and issuance of a digital credential.
How a page requests a credential W3C-DIGITAL-CREDENTIALS §2.3, and the coordinator that mediates it W3C-DIGITAL-CREDENTIALS §6. The presentation protocol’s profile for this interface OPENID4VP-1.0 §A, and the high-assurance profile’s HAIP-1.0 §5.2.
- The browser and operating system carry the request and the response; the interface’s privacy considerations are still being written (4.5 Who can see what, across the whole lifecycle).
- The interface does not define the presentation itself: the protocol carried over it does.
- HAIP-1.0 OpenID4VC High Assurance Interoperability Profile 1.0
- OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0
- W3C-DIGITAL-CREDENTIALS Digital Credentials API