Architecture & security
itsme integration
What itsme is used for (and only for), the OIDC flow and its specific constraints, which data is kept, and the legal framing.
Built from 4 source documents
Role, in one sentence
itsme is the identity root: the only moment a human proves who they are at eIDAS level "High". It is used once per mandate creation or modification (and at each re-login to view/revoke) — never during tool calls. It answers one question: "the person in front of the screen is human X, authenticated at this time, at this level". Everything else (mandate content, scope, revocation) is built by Veritia. The local tool and the SDK never talk to itsme.
The flow — OIDC authorization code
sequenceDiagram
actor H as Human
participant VP as Veritia backend
participant IT as itsme (idp.prd.itsme.services)
H->>VP: 2.1 "Sign in with itsme"
VP->>IT: 2.2 redirect → /v2/authorization (code, scope openid + service, state, nonce, PKCE, acr_values)
IT->>H: 2.3 confirms on the phone (biometrics / itsme code)
IT->>VP: 2.3 redirect back with ?code&state
VP->>IT: 2.4 POST /v2/token (code + client_assertion, private_key_jwt)
IT-->>VP: id_token (signed THEN encrypted) + access_token
VP->>VP: decrypt, verify, extract 3 fields — discard the tokens| Endpoint | Production | Sandbox ("e2e") |
|---|---|---|
| Discovery | https://idp.prd.itsme.services/v2/.well-known/openid-configuration | https://idp.e2e.itsme.services/v2/.well-known/openid-configuration |
| Authorization / Token / UserInfo | …/v2/authorization · …/v2/token · …/v2/userinfo | same paths on idp.e2e |
Always start from the discovery document; the pre-25-June-2025 oidc.[e2e|prd].itsme.services/clientsecret-oidc URLs are legacy.
Constraints not to miss when coding
scopemust containopenidandservice, plus aservice:<CODE>assigned at onboarding.- The ID token is a nested JWT: decrypt with Veritia's private key, then verify the signature with itsme's JWKS.
- Token-endpoint auth:
private_key_jwt(recommended) or client secret. Arequestobject, if used, is signed then encrypted. redirect_uri: strict HTTPS, pre-registered, OV or EV certificate only (no DV), SNI required.- PKCE
S256supported (can be made mandatory); thecodelives 3 minutes. acr_values:acr_basic(default: fingerprint or itsme code) oracr_advanced(forces the itsme code).auth_time/amrare not documented as returned — if absent, use Veritia's own reception time (and say so).
What is kept — decision table
| Data | Claim | Kept? | Where / why | Legal basis | Status |
|---|---|---|---|---|---|
| A. Pseudonymous human id | sub | ✅ persistently | User table + derived sub in each JWT — re-login, mandate binding, disputes | 6(1)(b) | ✅ principle / 🔶 exact form |
| B. Authentication time | auth_time or reception time | ✅ | Platform trace | 6(1)(b) + legitimate interest | ✅ |
| C. Assurance level / method | acr (amr if provided) | ✅ if provided | Platform trace — strength of the authentication | idem | ✅ |
| D. Raw ID token | — | ❌ read once, never stored | — | Minimisation | ✅ |
| E. itsme access token | — | ❌ | — | Minimisation | ✅ |
| F. First + last name | given_name, family_name | 🔶 undecided | Dashboard display, human-readable mandate in disputes | 6(1)(b) or (f) | 🔶 |
| G. E-mail | email | 🔶 undecided | Proactive notifications, expiry/revocation alerts — or ask it on Veritia's form instead | idem | 🔶 |
| H. National register number | scope eid | ❌ not in V1 | Only useful for "Approach 1" matching, which is blocked legally | Special regime | ✅ don't request |
| I–J. eID card no., gender, birth date, photo, address, phone… | various | ❌ | No use for the mandate | Minimisation | ✅ |
If the name is wanted, request given_name + family_name individually via the claims parameter — not the whole profile scope.
Legal framing (summary)
GDPR: none of these is special-category data; basis 6(1)(b); minimisation is the argument for requesting nothing
beyond openid + service; a retention period must be fixed and published (not done); clear information at
login (incl. "the provider receives a JWT containing sub"). itsme itself enforces proportionality at onboarding.
The national register number is a special regime (prohibited in principle, narrow IT-application exemption,
strict purpose lock) — see legal & regulatory.
What itsme does not do for Veritia
It never sees the mandate content, the scope, the agent key or any tool call; it doesn't store or revoke the mandate; and in V1 (plain login) it proves who logged in, not that the consent was fully informed — the fix for that is itsme Sign / QES (V1.1).
Decisions still to take
Scopes requested in V1 · keep the name or not · e-mail from itsme or from Veritia's form · sub pairwise vs stable
(decide together with provider_account_ref) · retention durations · impose acr_advanced or not · confirm with
itsme that sub is stable and pairwise per client_id · whether auth_time is returned · login (V1) vs itsme Sign
QES (V1.1). Brokers (Signicat, OneWelcome) are an alternative to a direct integration. Useful links are in the
source document.