← Back to DAGDA | Support | Source: https://github.com/Mibuw/miEUDIverifier
Skip to content

About

C#/.NET 8 EUDI Wallet verifier (OpenID4VP) reading PID identity data (name, given name, date of birth) — bilingual web UI, QR flow, Docker.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

miEUDIverifier

NuGet NuGet downloads License Docker on GHCR Wallets

Reads the PID (Personal Identification Data) from an EUDI Wallet over OpenID4VP — as a ready-to-run ASP.NET Core web app with a browser UI and a REST API, and as the reusable library miEUDIverifier.Core on NuGet:

dotnet add package miEUDIverifier.Core

One deployment serves two wallet ecosystems. The German path verifies the presentation in this process, with no verifier backend; the EU reference path talks to the hosted EUDI Verifier Backend. Why the two differ is the first thing worth knowing about this repository, and it is explained below.

✅ Works with two wallet ecosystems — live and testable

Last verified on 30 November 2026: a real presentation from the German EUDI Wallet, all seven PID attributes, through the public instance at mieudiverifier.mitterbucher.com — package 2.2.0 on Tessio.Verifier 0.39.0. Publicly testable examples of the German ecosystem are hard to come by, so everything is open here: code, deployment templates and the trust analysis behind them.

Ecosystem Wallet Verifier identity Verified by Last verified Try it
Germany 🇩🇪 German EUDI Wallet (sandbox app "d-you", closed beta) access certificate from the EUDI Hub sandbox this application, in process 30 Nov 2026 /?backend=de
EU reference EUDI Reference Wallet (iOS / Android) eudiw.dev reference CA the hosted backend at verifier-backend.eudiw.dev 4 Nov 2026 /?backend=eu

Pick the ecosystem with the switcher above the QR code. Each has its own QR code, because a request object is signed by one access certificate and carries one client_id, and each wallet trusts only its own ecosystem — scanning the other one's code always fails. New request gives you a fresh code. The public instance comes with no guarantee of availability.

Verification history
Date What was verified
28 Jul 2026 First German presentation, through a verifier backend
24 Aug 2026 EU path again, after eudiw.dev began requiring a registration certificate (TEST-01)
4 Nov 2026 Both paths through verifier backends; the German path with all seven attributes, in separate runs as dc+sd-jwt and mso_mdoc
11 Nov 2026 German path in process, with no backend at all (package 2.0.0, Tessio.Verifier 0.30.2)
12 Nov 2026 German path with access and registration certificates from the EUDI Hub
30 Nov 2026 German path on Tessio.Verifier 0.39.0 (package 2.2.0) with a reissued Registration Certificate, locally and in production

How it works

Why one path needs no backend and the other does

A verifier backend exists to be the verifier: it holds the access certificate that signs the request, and its identity is the one the wallet pins the request to. Where you hold that certificate yourself, the backend is a container doing work your own process can do.

For Germany we hold it — an access certificate from the EUDI Hub sandbox — so the application signs its own request objects, hosts the endpoints the wallet calls and verifies the presentation with Tessio.Verifier. One container instead of two, and no JVM.

For the EU ecosystem we do not. There the verifier identity comes from the hosted backend at verifier-backend.eudiw.dev, and no certificate of ours could replace it, so that path keeps its HTTP client. IVerifierEngine is the seam between the two: three methods, two implementations, and the UI, the polling and the session handling do not know which answered.

Via a verifier backend — the EU ecosystem. The wallet never talks to this app; it talks to the backend, which is the verifier, and the app asks the backend what came in.

┌─────────────┐     POST /ui/presentations      ┌──────────────────────┐
│  Web app    │ ──────────────────────────────► │  EUDI Verifier       │
│  (Verifier) │ ◄────────────────────────────── │  Backend             │
│             │  transaction_id + request_uri   │  (verifier.eudiw.dev │
│  Show QR    │                                 │   or local)          │
│  code in    │                                 └──────────────────────┘
│  browser    │                                          ▲
│             │                                          │ VP Token
└─────────────┘                                          │
      ▲                                       ┌──────────┴───────┐
      │ GET /ui/presentations/{id}            │  EUDI Wallet App │
      │ (auto-polling)                        │  (iOS / Android) │
      │                                       │  scans QR code   │
      └───────────────────────────────────────┴──────────────────┘

In process — the German ecosystem. There is no second component: the wallet fetches the signed request from this app and posts the presentation back to it, and the same process verifies it.

┌──────────────────────────────────────────────┐
│  Web app (the Verifier itself)               │
│                                              │
│  signs the request object with its own       │
│  access certificate, adds the registration   │
│  certificate as verifier_info                │
│                                              │
│  Show QR code ──────────────────────────────┐│
│                                             ││
│  GET  /verify/jar/{id}      the signed JAR  ││   ┌──────────────────┐
│  ◄──────────────────────────────────────────┼┼───│  EUDI Wallet App │
│                                             ││   │  (iOS / Android) │
│  POST /verify/callback      the encrypted   ││   │  scans QR code   │
│  ◄──────────────────────────────────────────┼┼───│                  │
│       response (direct_post.jwt)            ││   └──────────────────┘
│                                             ││
│  verifies it: issuer trust via x5c, device  ││
│  binding, digests, doctype                  ││
└─────────────────────────────────────────────┴┘

Either way the browser page polls for the result and shows the identity data when it arrives — no manual reload.

What the German path requires beyond the EU one is written up in docs/trust-and-multi-backend.md: the x509_hash client-id prefix, an encrypted response (direct_post.jwt), a Registration Certificate for data minimisation, and the certificate pitfalls that all surface in the wallet as the same unhelpful Could not trust certificate chain.

One thing the in-process path does not do: check revocation. It confirms that the PID was validly issued, not that it is still valid, so a revoked PID is accepted. The page says so, in both languages. The cause is not a library defect — EAA-6.2.10.1-06.2 requires the status list's chain to be signed by whatever signed the Document Signer, and the German PID test issuer uses sibling CAs under one root, which that rule cannot describe. Tessio.Verifier has confirmed it keeps the strict rule (tripledownab/tessio-verifier#192), so only the PID provider can change this. The full reasoning is in InProcessVerifierOptions.CheckRevocation. The EU path's backend does check revocation.

A page opens on the phone afterwards

After the wallet finishes an in-process presentation, a browser page opens on the holder's phone. Tessio.Verifier answers every processed response with a redirect_uri, so a wallet cannot tell a cross-device session from a same-device one by the shape of the answer. HAIP 1.0 §5.1 requires that member for the same-device flow, OpenID4VP 1.0 §8.2 leaves it optional, and the reference backend sends nothing — which is why it is new rather than wrong.

The library's own page shows its name and the disclosed attributes. A deployment can serve its own instead: InProcessVerifierOptions.ReturnPageHtml in the library, or InProcess:ReturnPageHeading in this app, which the public instance uses. What that page discloses and the trade-offs are set out in the sample's README.

What it reads

This verifier reads only the PID credential. Which attributes it asks for is configuration, not code. Attributes are given in mso_mdoc spelling and translated for SD-JWT VC, where two of them differ. The German path requests mso_mdoc only; the EU path offers both formats as alternatives, so the wallet presents whichever it holds.

Attribute mso_mdoc (eu.europa.ec.eudi.pid.1) SD-JWT VC In process (default) Backend path (default)
Family name family_name family_name ✅ ✅
Given name given_name given_name ✅ ✅
Date of birth birth_date birthdate ✅ ✅
Place of birth place_of_birth place_of_birth ✅
Nationality nationality nationalities ✅
Issuing authority issuing_authority issuing_authority ✅
Issuing country issuing_country issuing_country ✅

In process, InProcess:RequestedClaims narrows the set; on the backend path, PidClaims sets the default and PidClaimsByBackend overrides it per backend. The public instance asks for all seven on the German path and for the default three on the EU path. The values land on IdentityData; anything returned beyond the mapped fields is kept in AdditionalClaims.

Asking for more. A request may not ask for more than its Registration Certificate covers: one attribute too many and the German wallet drops the request with no consent screen, which looks like a certificate fault and is not one. Widening the request means a new certificate from the registrar. The German PID also does not carry every attribute the EU specification defines — the portrait, document number, sex, e-mail, phone number and expiry date are not included. Attributes without a mapped IdentityData field arrive in AdditionalClaims.

Getting started

Run it locally

Requires the .NET 8 SDK and a wallet holding a PID (see the next section).

git clone https://github.com/Mibuw/miEUDIverifier.git
cd miEUDIverifier
dotnet run --project src/miEUDIverifier
#  → the browser opens http://localhost:5050 and shows a QR code
#  → scan it with the wallet and confirm; the page shows the identity data

Out of the box the app serves the EU path against verifier-backend.eudiw.dev, with the public test intended use TEST-01. That works from localhost, because the wallet talks to the hosted backend, not to your machine. The German path needs a public URL and certificates of your own — see Where the verifier's identity lives.

Get a wallet and a test PID

  • EUDI Reference Wallet (EU path). Android: pre-built APKs of the latest *-Demo version under eudi-app-android-wallet-ui / releases (when switching versions, uninstall the previous one first). iOS: build eudi-app-ios-wallet-ui yourself. Then load a test PID from issuer.eudiw.dev/credential_offer: select PID, either MSO Mdoc or SD-JWT VC — both work — and scan the offer from the wallet's Add document screen. No real ID document is needed.
  • German EUDI Wallet (German path). A closed-beta sandbox app; it obtains its PID from the Bundesdruckerei test issuer during onboarding. It trusts only verifiers certified by the EUDI Hub, so use ?backend=de — the EU code fails in this wallet.

Using it from your own application

The NuGet package and the samples

samples/ holds two runnable ASP.NET Core applications that use nothing but the published package, for the German EUDI Wallet:

The samples README also explains where the endpoint, the certificates and the wallet-facing response URL each belong.

REST API

Besides the demo page at /, the app exposes a session-based REST API, so other applications can run any number of verifications in parallel. Each POST /api/verification creates an independent session with its own QR code, polling and result.

Method & path Description
POST /api/verification Start a verification. Returns 201 with { id, status, deepLink }.
GET /api/verification/{id}/qrcode QR code as a PNG image (image/png).
GET /api/verification/{id}/status Current status: waiting / complete / partial / rejected / error.
GET /api/verification/{id}/data The PID data (200) once complete or partial; 409 while waiting, or when rejected or error.
DELETE /api/verification/{id} Discard the session and cancel its polling (204).

partial means verified, with fewer attributes than requested; rejected means the response held no credential of the requested type, which is final. Unknown session ids return 404. Sessions expire after SessionTtlMinutes (default 30).

BASE=http://localhost:5050

ID=$(curl -s -X POST $BASE/api/verification | jq -r .id)    # 1. start
curl -s $BASE/api/verification/$ID/qrcode -o qr.png          # 2. show the QR code (or render deepLink)
curl -s $BASE/api/verification/$ID/status                    # 3. poll until "complete"
#  {"id":"…","status":"waiting","error":null}
curl -s $BASE/api/verification/$ID/data                      # 4. fetch the PID data
#  {"id":"…","status":"complete","familyName":"…","givenName":"…","birthDate":"1967-06-10","format":"mso_mdoc",…}
curl -s -X DELETE $BASE/api/verification/$ID                 # 5. optional clean-up

Multiple trust ecosystems (?backend=)

Call Behaviour
GET /api/backends Lists the configured backend keys and the default.
POST /api/verification?backend=<key> Starts the verification against that ecosystem. Unknown key → 400.
POST /api/reset?backend=<key> Re-targets the current demo session to another ecosystem.
GET /?backend=<key> The demo page switches to that ecosystem.

With more than one ecosystem configured, the demo page shows the switcher; with one, it is not rendered and the page looks as it always did. The chosen key is echoed back as backend in the status and data responses.

Configuration

All settings live under VerifierSettings in src/miEUDIverifier/appsettings.json, and every key can be overridden without touching the code — by environment variable (prefix EUDI_, __ separates the levels) or on the command line:

EUDI_VerifierSettings__BackendUrl=http://localhost:8080 dotnet run --project src/miEUDIverifier
dotnet run --project src/miEUDIverifier -- --VerifierSettings:BackendUrl=http://localhost:8080

Where the verifier's identity lives

Whatever signs the request objects is the verifier, and that decides where its identity is configured.

In process (the German path). The identity is this application's, so it is configured here, under VerifierSettings:InProcess:

Setting Purpose
InProcessBackend Which ecosystem key is verified in process (de)
InProcess:PublicBaseUrl The wallet-facing base URL. Not localhost: the wallet fetches the request object and posts the response over the internet
InProcess:RoutePrefix Where the wallet-facing endpoints live (default /verify)
InProcess:AccessCertificatePath (+ AccessCertificatePassword) PKCS#12 with the private key, the access certificate and its issuing CA
InProcess:RegistrationCertificatePath (or RegistrationCertificate) The Registration Certificate, verbatim — the wallet verifies a signature over those exact bytes
InProcess:IssuerTrustAnchorDirectory The PID issuer's CA certificates. Without them a presentation verifies cryptographically and is still refused as untrusted
InProcess:RequestedClaims What to ask for; default all seven. Must stay within the Registration Certificate
InProcess:ReturnPageHeading Heading of this app's own page on the holder's phone
InProcess:CheckRevocation Off, for a documented reason

The chain matters, not just the leaf: HAIP 1.0 §5 and ETSI TS 119 472-2 §6.4.2 want the access certificate and its path up to, but excluding, the trust anchor in the request's x5c. Trust anchors for the German test issuer can be fetched with fetch-trust-anchors.sh. A deployment serving both ecosystems, as the public instance does:

EUDI_VerifierSettings__Backends__eu="https://verifier-backend.eudiw.dev"
EUDI_VerifierSettings__IntendedUseIds__eu="TEST-01"
EUDI_VerifierSettings__DefaultBackend="eu"
EUDI_VerifierSettings__InProcessBackend="de"
EUDI_VerifierSettings__InProcess__PublicBaseUrl="https://verifier.example.com"
EUDI_VerifierSettings__InProcess__AccessCertificatePath="/certs/keystore.p12"
EUDI_VerifierSettings__InProcess__RegistrationCertificatePath="/certs/registration-certificate.jwt"
EUDI_VerifierSettings__InProcess__IssuerTrustAnchorDirectory="/trust-anchors"

Through a backend (the EU path). The identity belongs to the verifier backend, because that is what signs there; this app only needs its URL. Running a backend of your own is configured through its VERIFIER_* environment variables — access certificate keystore, client-id prefix, intended uses with their Registration Certificates. A fully commented template is docker/docker-compose.de-backend.yml, which is how the German path ran until 11 November 2026 and remains a working alternative.

To reuse this project in another ecosystem you need an access certificate from that ecosystem's registrar; nothing in the code is bound to a specific issuer. Requesting a credential other than the PID means editing the DCQL query — in VerifierApiService or TessioVerifierEngine, where InProcess:DocType and InProcess:MdocNamespace set the doctype and namespace.

The Registration Certificate

A request carries exactly one Registration Certificate, and it must cover everything the request asks for. For the German path it comes from the EUDI Hub portal, which took over from the interim SPRIND sandbox on 19 November 2026. Three rules decide whether the wallet releases the attributes:

  • One claim entry per attribute. A single entry listing several names addresses one claim with the others nested under it, and grants only the first.
  • Each format in its own spelling. mso_mdoc with meta.doctype_value and two-segment paths, namespace first; dc+sd-jwt with meta.vct_values and one-segment paths. birth_date and nationality in mdoc are birthdate and nationalities in SD-JWT VC.
  • Both formats in one certificate if the request offers both as alternatives — two separately issued certificates cannot be combined in one request.
"credentials": [
  { "format": "mso_mdoc",  "meta": { "doctype_value": "eu.europa.ec.eudi.pid.1" },
    "claim": [ { "path": ["eu.europa.ec.eudi.pid.1", "family_name"] }, … ] },
  { "format": "dc+sd-jwt", "meta": { "vct_values": ["urn:eudi:pid:de:1"] },
    "claim": [ { "path": ["family_name"] }, … ] }
]

What the certificate must look like in detail is in docs/german-pid-presentation.md.

The EU path needs one too. Since August 2026 eudiw.dev rejects a request without an intended_use_id (400 MissingRegistrationCertificate). You do not need a certificate of your own: eudiw.dev publishes the public test intended use TEST-01, which is this app's default (IntendedUseId), and lists its intended uses at https://verifier-backend.eudiw.dev/ui/intended-uses.

All settings

Backends and ecosystems

Key Default Description
BackendUrl https://verifier-backend.eudiw.dev The verifier backend's REST API — not verifier.eudiw.dev, which serves the demo UI. Used when Backends is empty
Backends (empty) Named backends, key → base URL. Enables ?backend=<key> and the switcher
DefaultBackend eu Ecosystem used when no ?backend= is given
InProcessBackend (none) Ecosystem key verified in process; see above
MdocOnlyBackends / SdJwtOnlyBackends (empty) Backend keys that request only one PID format
IntendedUseId TEST-01 Fallback intended_use_id for backends without an IntendedUseIds entry
IntendedUseIds (empty) Backend key → intended_use_id, selecting the backend's Registration Certificate
ResponseModes (empty) Backend key → direct_post or direct_post.jwt

Protocol (backend path)

Key Default Description
Profile openid4vp OpenID4VP profile (openid4vp or haip)
JarMode by_reference How the request JWT is passed (by_reference / by_value)
RequestUriMethod get HTTP method for request_uri (get / post)
ResponseMode direct_post Default response mode (direct_post / direct_post.jwt)
AuthorizationRequestScheme openid4vp URI scheme of the QR deep link (e.g. eudi-openid4vp, haip-vp)

Wallet aborts with "HAIP profile requires an encrypted response mode"? That check runs inside the wallet before the consent screen, so nothing reaches your logs. Set ResponseMode (or ResponseModes__<key>) to direct_post.jwt; the backend then advertises an ephemeral ECDH-ES key and decrypts the response. The in-process path uses direct_post.jwt by default.

Credentials (backend path)

Key Default Description
PidClaims family name, given name, birth date Attributes to request, in mso_mdoc spelling
PidClaimsByBackend — Per-backend override of PidClaims
SdJwtFormat dc+sd-jwt DCQL format id for SD-JWT VC (older stacks used vc+sd-jwt)
SdJwtVctValues ARF + spec example Accepted vct values for the SD-JWT VC PID
GermanPidVctValues urn:eudi:pid:de:1 + Bundesdruckerei prototype Accepted vct values for the German PID; an empty list disables that option
SdJwtVctValuesByBackend / GermanPidVctValuesByBackend — Per-backend overrides; a blank entry drops the option
IssuerChain — PEM certificate chain of the trusted PID issuer

Runtime

Key Default Description
PollIntervalSeconds 3 Polling interval
PollTimeoutSeconds 120 Maximum wait for the wallet response
SessionTtlMinutes 30 Lifetime of verification sessions (REST API and browser)

Hosting

Address and port

Kestrel listens on http://127.0.0.1:5050 by default — this machine only. The container image binds http://0.0.0.0:5050 instead. Change it in Kestrel:Endpoints:Http:Url, for example http://0.0.0.0:5050 for all interfaces or http://192.168.1.42:5050 for one address. On startup the app prints its local and LAN addresses.

HTTPS

Add an Https endpoint with a certificate — PFX shown here; for PEM, use Path and KeyPath instead:

"Kestrel": {
  "Endpoints": {
    "Http":  { "Url": "http://127.0.0.1:5050" },
    "Https": { "Url": "https://0.0.0.0:5443",
               "Certificate": { "Path": "certs/my-certificate.pfx" } }
  }
}

The certificate password does not belong in appsettings.json. Pass it as EUDI_Kestrel__Endpoints__Https__Certificate__Password, or locally with dotnet user-secrets --project src/miEUDIverifier set "Kestrel:Endpoints:Https:Certificate:Password" "…". Certificate files are excluded by .gitignore and .dockerignore. For a local development certificate: dotnet dev-certs https -ep certs/dev.pfx -p devpass.

Docker

docker run --rm -p 5050:5050 ghcr.io/mibuw/mieudiverifier:latest

Images are published for release tags (such as :2.2.0) and for main (:latest). Mount certificates read-only and pass secrets as environment variables — never copy them into the image. The public instance runs this image behind a TLS-terminating reverse proxy.

docker/docker-compose.yml starts the EUDI reference verifier backend locally. Mind that a wallet trusts a self-hosted backend only with an access certificate from its own ecosystem — docs/trust-and-multi-backend.md explains why.

Project structure

miEUDIverifier/
├── miEUDIverifier.sln
├── Dockerfile                                # Container build of the web app
├── docker/                                   # Verifier backend stacks (reference, German)
├── docs/                                     # Trust model, German PID presentation
├── samples/                                  # Two apps using only the NuGet package
└── src/
    ├── miEUDIverifier/                       # ASP.NET Core web app (Minimal API)
    │   ├── Program.cs                        # Endpoints and flow control
    │   ├── appsettings.json
    │   └── WebServer/                        # Page, session store, runtime state
    ├── miEUDIverifier.Core/                  # The NuGet package
    │   ├── MiEUDIverifierExtensions.cs       # AddMiEUDIverifier()
    │   ├── Configuration/VerifierSettings.cs
    │   ├── Models/                           # DCQL request, wallet response, IdentityData
    │   └── Services/
    │       ├── IVerifierEngine.cs            # The seam: one contract, two engines
    │       ├── VerifierApiService.cs         # Engine 1: verifier backend over HTTP
    │       ├── QrCodeService.cs
    │       └── Tessio/                       # Engine 2: in process, no backend
    │           ├── TessioVerifierEngine.cs           # Sessions, requests, responses
    │           ├── TessioVerifierExtensions.cs       # DI and the wallet-facing endpoints
    │           ├── InProcessVerifierOptions.cs       # What a deployment must supply
    │           ├── RegistrationCertificateRequestBuilder.cs  # Adds verifier_info
    │           ├── AccessCertificateChain.cs         # Leaf and path, anchor excluded
    │           └── HostedRequestObjects.cs           # Serves the signed request objects
    └── miEUDIverifier.Core.Tests/            # xUnit tests, offline, net8.0 and net10.0

Standards and references

Standard Description
OpenID4VP 1.0 Presentation protocol
DCQL Digital Credentials Query Language
ISO/IEC 18013-5 mDL / mdoc data format
SD-JWT VC Selective Disclosure JWT Verifiable Credentials
EUDI ARF EU Digital Identity Architecture

Built on Tessio.Verifier for the in-process path. Related EUDI repositories: eudi-srv-verifier-endpoint (verifier backend), eudi-web-verifier (verifier frontend), eudi-app-android-wallet-ui and eudi-app-ios-wallet-ui (wallet apps), eudi-srv-pid-issuer (PID issuer).

Security issues: see SECURITY.md.

License

Licensed under the Apache License, Version 2.0 – in line with the EUDI Reference Implementation. See LICENSE and NOTICE.

Copyright 2026 Wolfgang Mitterbucher.

All third-party dependencies are permissive (MIT / Apache 2.0) and compatible with this license.


Author

Wolfgang Mitterbucher — Software Engineering & Digital Identity, Leonding (Austria)

🌐 www.mitterbucher.com · 💼 LinkedIn · ✉️ office@mitterbucher.com

More open-source projects: miPDFconvert · miPDFvalidator · miEUDIverifier

About

C#/.NET 8 EUDI Wallet verifier (OpenID4VP) reading PID identity data (name, given name, date of birth) — bilingual web UI, QR flow, Docker.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages