EUDI Wallet checks in the browser, without a QR code
eudiw-adapter 0.3.0 verifies EUDI Wallet presentations over the W3C Digital Credentials API, binds transactions such as payments to a presentation, and signs requests with keys in HashiCorp Vault or AWS KMS. What changed since 0.1.0, how it is tested, and what is still open.
When we released eudiw-adapter, our self-hosted EUDI Wallet verifier, we wrote that ISO mdoc and the Digital Credentials API were not included yet. Both are now in. Version 0.3.0 adds the Digital Credentials API, transaction data, request-signing keys in HashiCorp Vault and AWS KMS, and a second independent wallet in CI. Version 0.2.0 added ISO mdoc. This article covers what changed since 0.1.0 and how each part is tested. The full list is in the changelog.
Existing configurations keep working. Read the upgrade notes before a rolling upgrade.
a wallet on the same device, through the browser
So far a check meant a QR code to scan with a phone, or a link that hands over to the wallet app. Both leave the browser, and the link depends on the operating system routing a custom URL scheme to the right app.
The W3C Digital Credentials API lets the page ask the browser for a credential instead. The browser, together with the operating system, shows the wallets that can answer and passes the response back to the page. OpenID4VP 1.0 defines how a verifier's request travels through it, and the HAIP 1.0 profile used by the EUDI Wallet framework requires those requests to be signed and the responses encrypted.
The backend flow stays close to what it was. The backend starts a session in mode dc_api and names the page's origin:
curl -X POST https://adapter.example/v1/verification-sessions \
-H "Authorization: Bearer $TOKEN" -H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{"policy_id":"age-over-18","mode":"dc_api","origin":"https://shop.example"}'
The response carries dc_api.request, the exact argument the page passes to navigator.credentials.get(). It is a signed request with the page's origin in expected_origins, and it asks for an encrypted response. The browser returns that response to the page. The backend relays it to the adapter, which verifies it like any other presentation and keeps only the claims the policy allows.
The origin is the part that makes this safe. Each client registers the origins of its pages (dc_api_origins), and the adapter checks that the presentation was made for the origin of the session. For SD-JWT VC, the holder's Key Binding JWT must name that origin as its audience. For mdoc, the device signature must cover a session transcript that contains it. A presentation obtained on another site does not verify here. We checked our mdoc transcript byte for byte against the worked example in the OpenID4VP specification.
On the page, the <eudiw-request> web component shows a "use a wallet on this device" button in place of the QR code:
<eudiw-request
mode="dc_api"
dc-api-request='{"digital":{"requests":[...]}}'
dc-api-url="/verifications/7Qx.../dc-api"
status-url="/verifications/7Qx.../status"
request-label="over 18"
expires-at="2026-11-20T10:05:00Z"></eudiw-request>
The click on that button is the user action the browser requires before it calls a wallet. The component then posts the browser's response to your backend and follows the session as before. The Node and Python examples offer the button only in browsers that have the API. The QR code stays available in every browser.
authorizing a payment, not only sharing a claim
Some checks are about a specific action, such as a payment or a contract signature, rather than about who the user is. OpenID4VP 1.0 calls this transaction data: the verifier sends the details of the transaction with the request, the wallet shows them to the user, and the wallet's signature covers a hash of them.
A session can now carry up to eight such entries. In this example, payment_card is a type the policy allows, pid is the policy's credential query, and the other fields are whatever that type defines:
{
"policy_id": "payment-confirmation",
"mode": "cross_device",
"transaction_data": [
{ "type": "payment_card", "credential_ids": ["pid"], "amount": "42.00", "currency": "EUR", "payee": "Example Shop" }
]
}
Each policy names the transaction types its clients may send. The adapter rejects a presentation whose Key Binding JWT does not carry the SHA-256 hash of every entry. The result returns the entries the holder authorized, so the backend can store them as evidence. Transaction data never appears in the session status, events, webhooks or logs. This works for SD-JWT VC. For mdoc, the adapter refuses transaction data for now, because each transaction type has to define how it is carried in an mdoc, and we have no wallet to test one with yet.
ISO mdoc
Version 0.2.0 added ISO mdoc presentations, the format of the mobile driving licence and of the PID in many wallets. The adapter checks the issuer's mobile security object, the IACA certificate rules for the mDL, and the device signature over the OpenID4VP session transcript. Revocation works through the same Token Status List checks as for SD-JWT VC. Departures from ISO/IEC 18013-5 that the adapter tolerates, such as a P-384 device key, are accepted but written to the audit trail, and a policy can refuse them.
signing keys that stay in a key service
The adapter signs every request it sends to a wallet. Version 0.1.0 could keep that key in a file or in an HSM over PKCS#11. Version 0.3.0 adds two key services that many teams already run:
- HashiCorp Vault Transit. The key never leaves Vault. The adapter reads the Vault token from a file on every signature, so Vault Agent can renew it without a restart.
- AWS KMS. Credentials come from the AWS SDK's default chain, including EKS workload identity. Nothing secret goes into the adapter's configuration.
Every signature, whatever the key source, is checked against the request-signing certificate before it is sent. If a key is rotated in Vault or KMS without a new certificate, the adapter stops signing instead of sending requests that wallets will reject, and the wallet gets a 503 with Retry-After.
smaller changes
- Session status as Server-Sent Events. A backend can follow a session over one open connection instead of polling. It works across replicas and never carries claims.
- A demo without cloning. One command, with Docker,
curlandjq, runs the released image with PostgreSQL, Keycloak and the eudi-dev test wallet, and checks an SD-JWT VC, an untrusted issuer and an mdoc:
curl -fsSL https://raw.githubusercontent.com/su-engineering/eudiw-adapter/main/deploy/quickstart/run.sh | sh
how it is tested
A verifier is only as useful as the wallets it works with, so most of the work in this release went into testing against software we did not write. Every change now runs, in CI:
- Two independent wallets. eudi-dev presents SD-JWT VC and mdoc credentials, in strict HAIP and ARF modes. walt.id Wallet API 2 presents both formats too, authorizes a payment with transaction data, and refuses our request when it does not trust our relying-party certificate.
- The Digital Credentials API in a real browser. Headless Chromium runs a relying-party page that calls
navigator.credentials.get(). eudi-dev's browser extension answers it with an eudi-dev wallet server. An SD-JWT VC and an mdoc PID verify, and a session created for another origin rejects what the page received. The same run drives the example pages and the web component. - The OpenID Foundation verifier tests. The OID4VP 1.0 Final and HAIP verifier test plan runs on every change: 14 modules, five of which must verify and nine must be rejected. The suite plays the wallet and the issuer. Every module ends in REVIEW, and this is not certification.
The wallet table records what each run covers and what has not been tested.
what 0.3.0 does not cover
- No phone wallet has used the Digital Credentials API with the adapter yet. In CI, eudi-dev's browser extension takes the place of the wallet selector that Android and iOS provide. A platform wallet is next on the roadmap.
- The EU reference wallet has not been run against the adapter, neither on emulators nor on phones.
- Transaction data works for SD-JWT VC only.
- Not certified, no external security review. The OpenID Foundation tests run in CI, but certification needs the hosted suite. OCSP and wallet attestation are not implemented.
- Trusted lists and registration certificates have been tested with synthetic data only.
The feature matrix lists each feature with the test behind it. Test with the wallets and issuers you will accept before going live.
from a verifier to a product flow
The adapter handles the protocol, the trust checks and data minimization. What remains is deciding which issuers you accept, what each check may keep, and where a wallet check fits into checkout, onboarding or a signing flow. We help teams connect EUDI wallets to the products and identity systems they already run. See our identity project work, or tell us what you are building.
Working on something similar? Talk to us