Skip to content

About

Open-source EUDI Wallet verifier: accept EU Digital Identity Wallet credentials over OpenID4VP and HAIP, verify SD-JWT VC, return minimized claims. Self-hosted Java service and library.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

85 Commits

Folders and files

Repository files navigation

eudiw-adapter: accept EU Digital Identity Wallet credentials, get back only the claims you asked for

The open-source EUDI Wallet verifier for relying parties

Self-hosted service and Java library. Verifies SD-JWT VC and ISO mdoc presentations over OpenID4VP 1.0 and HAIP 1.0,
and hands your backend only the claims it asked for.

CI License: Apache-2.0 Java 21 OpenID4VP 1.0 HAIP 1.0 SD-JWT VC ISO mdoc Helm

Quickstart · How it works · Features · Docs · Security

Note

Pre-1.0. Releases and what changed in each are in the changelog; before 1.0.0 a minor version can change the API or the configuration format. The feature matrix lists exactly what is implemented and how it is tested. "Supported" means automated tests pass for a pinned version of a standard. It is not a conformance or certification claim.

Why

The EU Digital Identity Wallet (EUDI Wallet, eIDAS 2.0) lets people prove facts about themselves from their phone. Accepting it means implementing a stack of new standards correctly. eudiw-adapter puts that stack behind one small REST API.

Without it, your application has to With eudiw-adapter, your application
  • build and sign OpenID4VP request objects
  • decrypt direct_post.jwt responses (ECDH-ES)
  • verify SD-JWT disclosures and key binding
  • parse CBOR and verify ISO mdoc issuer and device signatures
  • validate issuer X.509 chains, trusted lists, CRLs
  • check Token Status Lists
  • decide what personal data to keep, and protect it
  • calls POST /v1/verification-sessions
  • shows a QR code or deep link
  • reads {"age_over_18": true}

That's all. Nothing else the wallet disclosed ever reaches your systems.

Typical uses: age verification without collecting a birth date, attribute checks at onboarding or checkout (residency, nationality, a qualification), adding wallet presentation to an existing web or mobile product. For wallet login inside Keycloak, see keycloak-oid4vp.

Quickstart

Requirements: Docker, curl, jq; Java 21 for the full demo.

Without cloning anything (Docker, curl and jq only; runs the released image with a file key):

curl -fsSL https://raw.githubusercontent.com/su-engineering/eudiw-adapter/main/deploy/quickstart/run.sh | sh

The full demo, built from source:

git clone https://github.com/su-engineering/eudiw-adapter.git && cd eudiw-adapter
./deploy/compose/demo.sh
Demo output: a session is created, the wallet presents, the result contains only age_over_18 true, an untrusted issuer is rejected, the same check passes with an ISO mdoc, and an mdoc signed for another session is rejected

The demo runs PostgreSQL, Keycloak (as your OAuth server) and the adapter, then plays both sides with the independent eudi-dev wallet in HAIP mode:

  • The adapter's request-signing key is generated inside SoftHSM and never leaves it.
  • Issuer trust comes from a signed ETSI trusted list.
  • The credential also holds a name, but only age_over_18 comes back.
  • The same check then runs with an ISO mdoc PID, and an mdoc signed over another session's transcript is rejected.

With the demo running, ./deploy/compose/waltid/run.sh repeats the SD-JWT VC and mdoc checks with a second, unrelated wallet, walt.id Wallet API 2.

The same demo and the walt.id run happen in CI on every commit. The demo uses plain HTTP on localhost with EUDIW_PRODUCTION=false; production requires HTTPS.

With the demo running, node examples/node/server.mjs serves an example page on http://localhost:3000 that runs the same check in the browser with the <eudiw-request> component and shows each protocol step as it happens (how to run it).

The example page after a verified check: the web component shows done, the protocol trace lists each request, and the result returned to the backend is only age_over_18 true

How it works

sequenceDiagram
    autonumber
    participant App as Your backend
    participant A as eudiw-adapter
    participant W as Wallet
    App->>A: POST /v1/verification-sessions {policy_id}
    A-->>App: launch_uri (QR code or deep link)
    App-)W: user opens the link or scans the QR code
    W->>A: fetch request_uri
    A-->>W: signed request object (x509_hash, DCQL, fresh encryption key)
    W->>A: direct_post.jwt (encrypted SD-JWT VC or mdoc presentation)
    Note over A: decrypt · verify issuer chain and trusted list<br/>key binding or device signature · status list · CRL · DCQL<br/>keep only the policy's output claims
    A-->>W: redirect_uri with one-time response_code (same device)
    A--)App: signed webhook, event stream or poll
    App->>A: GET /v1/verification-sessions/{id}/result
    A-->>App: {"age_over_18": true} (once, then deleted)
Loading
The API calls in full
# 1. Start a session (OAuth 2.0 client-credentials token with verification:create)
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":"same_device","client_reference":"order-42"}'
{
  "id": "vrs_2SzKUQQugO51nHJtOptDBowHzwztWwdf8lyMvVvAN9E",
  "status": "pending",
  "policy_id": "age-over-18",
  "wallet_launch": { "launch_uri": "openid4vp://?client_id=x509_hash%3A...&request_uri=..." }
}
# 2. Wait for the outcome: poll, take the webhook, or follow the event stream. The last event counts: if the
#    stream closes on "pending" (token expired, node restarted), reconnect with a fresh token or poll.
curl -N https://adapter.example/v1/verification-sessions/$ID/events -H "Authorization: Bearer $TOKEN"
#    event: status
#    data: {"id":"vrs_...","status":"verified",...,"result_available":true}

# 3. Fetch the result once
curl https://adapter.example/v1/verification-sessions/$ID/result -H "Authorization: Bearer $TOKEN"
{
  "id": "vrs_2SzKUQQugO51nHJtOptDBowHzwztWwdf8lyMvVvAN9E",
  "status": "verified",
  "policy_id": "age-over-18",
  "verified_at": "2026-11-16T23:33:30Z",
  "claims": { "age_over_18": true },
  "credential_evidence": [
    { "format": "dc+sd-jwt", "credential_type": "https://credentials.example/age", "issuer": "https://issuer.example" }
  ]
}

Show launch_uri as a link on the same device or as a QR code across devices. In same-device flows the wallet sends the user back to your completion URI with a response_code, and the result call requires it, so a relayed request cannot be completed by someone else's wallet. Full contract: OpenAPI.

Features

Verification you don't have to write
SD-JWT VC (RFC 9901): issuer signature, disclosure digests, key binding to your nonce and client identifier, Token Status List revocation and suspension. ISO mdoc: issuer signature, value digests, device signature over your request's session transcript.

OpenID4VP 1.0 as HAIP 1.0 profiles it
Signed request objects by request_uri, x509_hash client identifier, direct_post.jwt encrypted to a fresh key per request, DCQL with claim sets, credential sets and trusted_authorities.

Data minimization by design
Each policy names the claims that may leave the service. Results are encrypted at rest, retrievable once and expire. The raw presentation is never stored.

ETSI trusted lists
Issuer trust from signed TS 119 602 lists (such as the EU PID providers list) and TS 119 612 lists including the EU list of trusted lists. Pinned signers, freshness checks, rollback protection. Tested with synthetic lists so far.

HSM and KMS keys
Request-signing keys can stay in an HSM or KMS through PKCS#11, in HashiCorp Vault's Transit engine, or in AWS KMS. Tested with SoftHSM, which the demo signs with, with a Vault server, and with a KMS emulator (not AWS itself) in CI.

Fails closed
Unknown issuer, broken chain, revoked certificate (CRL) or credential, unknown status, replayed key binding or late response: rejected, with a coarse reason code.

Multi-tenant
Tenants, clients and policies from configuration. The tenant always comes from the caller's OAuth token, never from the request. Anchors and caches are per policy.

Signed webhooks
Standard Webhooks HMAC signatures, queued in the same database statement that ends the session, retried with backoff. They carry the session id and status, never claims.

Ready to run
Docker image, Compose demo, and a Helm chart that runs under the restricted Pod Security Standard. Any number of replicas share state through PostgreSQL.

Tested against others' work
RFC 9901 and OpenID4VP worked examples, a differential test against a second SD-JWT implementation, 5,000 mutated inputs, the independent eudi-dev wallet in strict HAIP and ARF mode, and the OpenID Foundation HAIP verifier test plan, which CI runs on every change (results).

Registered intended use
Sends the registrar dataset and registration certificate in verifier_info as ETSI TS 119 472-2 requires, and refuses at startup a query that asks for more than was registered. Tested with synthetic certificates.

Built to operate
Prometheus metrics, an audit trail, optional OpenTelemetry traces with request handles scrubbed, per-client rate limits shared across replicas, and configuration reload without a restart.

Drop-in frontend
A dependency-free <eudiw-request> web component (QR code, wallet link, status) and small Node and Python backends, run end to end in CI.

Your OAuth, your database
Backends use client-credentials JWT access tokens from your own OAuth 2.0 server (with discovery, naming the client in azp or client_id). State is PostgreSQL only: no message broker, cache or vendor service.

Wallet login for any OIDC application
The adapter can be an OpenID Connect provider: Keycloak, Nextcloud, Ory or a SaaS identity provider adds "EU Digital Identity Wallet" with an issuer URL, client id and secret. Pairwise subjects, no email claims, no provider session. Guide.

Architecture

flowchart LR
    APP["Your backend"] -- "OAuth 2.0 bearer<br/>REST /v1" --> SVC
    WALLET["EUDI Wallet"] -- "OpenID4VP<br/>request_uri · direct_post.jwt" --> SVC
    subgraph ADAPTER ["eudiw-adapter"]
      SVC["verifier service<br/><sub>Quarkus</sub>"] --> CORE["adapter-core<br/><sub>plain Java library</sub>"]
    end
    SVC --> DB[("PostgreSQL")]
    SVC -. "signed webhooks" .-> APP
    CORE -. "egress-checked fetches" .-> NET["trusted lists · status lists · CRLs"]
    SVC -. "PKCS#11, Vault Transit or AWS KMS" .-> HSM["HSM / Vault / AWS KMS"]
Loading
Module What it is
adapter-core Verification library: SD-JWT VC, ISO mdoc, DCQL, X.509 chains, trusted lists, status lists, CRLs, request objects, response decryption. Java 21 with Nimbus JOSE+JWT, no framework, usable without the service
adapter-verifier-service Quarkus service: management API, wallet endpoints, PostgreSQL state, webhooks, audit

Standards

Standard Version
OpenID for Verifiable Presentations (OpenID4VP) 1.0 Final
OpenID4VC High Assurance Interoperability Profile (HAIP) 1.0 Final
Selective Disclosure for JWTs (SD-JWT) RFC 9901
SD-JWT-based Verifiable Credentials (SD-JWT VC) version referenced by HAIP 1.0
ISO/IEC 18013-5 mobile documents (mdoc) 2021 (first edition)
Token Status List version referenced by HAIP 1.0
ETSI TS 119 602 / TS 119 612 trusted lists V1.1.1 / V2.4.1
ETSI TS 119 472-2 / TS 119 475 relying-party registration V1.3.1 / V1.2.1
EUDI Wallet Architecture and Reference Framework (ARF) reference

Test evidence per feature: standards and feature status. Which wallets have been run against the adapter, and how often: wallets.

Roadmap

  • SD-JWT VC verification, OpenID4VP 1.0 + HAIP 1.0, DCQL
  • ETSI trusted lists (TS 119 602, TS 119 612, EU LOTL)
  • Token Status List and CRL revocation checks
  • Signed webhooks, HSM/KMS request signing, Helm chart
  • Relying-party registration in verifier_info (ETSI TS 119 472-2)
  • Metrics, audit log, tracing, rate limits, configuration reload
  • Session status as Server-Sent Events, next to polling and webhooks
  • Web component and Node and Python examples
  • OpenID Foundation HAIP verifier test plan in CI on every change (not certified)
  • ISO mdoc (mso_mdoc): issuer and device authentication
  • Digital Credentials API, server side (mode: dc_api)
  • Digital Credentials API tested in Chromium against eudi-dev in CI
  • Digital Credentials API in <eudiw-request> and the Node and Python examples
  • Wallet login: the adapter as an OpenID Connect provider, tested with Keycloak and Nextcloud
  • A second independent wallet in CI (walt.id Wallet API 2, SD-JWT VC and mdoc)
  • The EU reference wallet on real devices, OCSP
  • transaction_data for SD-JWT VC, tested with walt.id
  • Wallet attestation, certification, external review

The full, ordered list is in ROADMAP.md.

Documentation

Architecture and decisions How it is built and why
Configuration Tenants, policies, ISO mdoc, registration, trusted lists, webhooks, HSM keys, metrics and reload
Web component and examples Frontend and backend integration in Node and Python
Kubernetes and Helm Deploying the chart
Threat model What it defends against, and what it doesn't
Standards and feature status Pinned versions and test evidence
Wallets Wallets tested against the adapter, what each run covers, and how to add one
Wallet login The adapter as an OpenID Connect provider for Keycloak, Nextcloud, Ory and other identity providers

Build

./mvnw clean verify

Service tests start PostgreSQL and the eudi-dev wallet with Testcontainers, so Docker must be running. The ISO mdoc code is built from clause references and our own descriptions of requirements; the ISO text is not reproduced in this repository (ADR-012).

Security

Report vulnerabilities privately; see SECURITY.md.

License

Apache License 2.0. See NOTICE.

Built by su.engineering

About

Open-source EUDI Wallet verifier: accept EU Digital Identity Wallet credentials over OpenID4VP and HAIP, verify SD-JWT VC, return minimized claims. Self-hosted Java service and library.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages