VVeritia documentation

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
EndpointProductionSandbox ("e2e")
Discoveryhttps://idp.prd.itsme.services/v2/.well-known/openid-configurationhttps://idp.e2e.itsme.services/v2/.well-known/openid-configuration
Authorization / Token / UserInfo…/v2/authorization · …/v2/token · …/v2/userinfosame 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

  • scope must contain openid and service, plus a service:<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. A request object, if used, is signed then encrypted.
  • redirect_uri: strict HTTPS, pre-registered, OV or EV certificate only (no DV), SNI required.
  • PKCE S256 supported (can be made mandatory); the code lives 3 minutes.
  • acr_values: acr_basic (default: fingerprint or itsme code) or acr_advanced (forces the itsme code).
  • auth_time / amr are not documented as returned — if absent, use Veritia's own reception time (and say so).

What is kept — decision table

DataClaimKept?Where / whyLegal basisStatus
A. Pseudonymous human idsub✅ persistentlyUser table + derived sub in each JWT — re-login, mandate binding, disputes6(1)(b)✅ principle / 🔶 exact form
B. Authentication timeauth_time or reception time✅Platform trace6(1)(b) + legitimate interest✅
C. Assurance level / methodacr (amr if provided)✅ if providedPlatform trace — strength of the authenticationidem✅
D. Raw ID token—❌ read once, never stored—Minimisation✅
E. itsme access token—❌—Minimisation✅
F. First + last namegiven_name, family_name🔶 undecidedDashboard display, human-readable mandate in disputes6(1)(b) or (f)🔶
G. E-mailemail🔶 undecidedProactive notifications, expiry/revocation alerts — or ask it on Veritia's form insteadidem🔶
H. National register numberscope eid❌ not in V1Only useful for "Approach 1" matching, which is blocked legallySpecial regime✅ don't request
I–J. eID card no., gender, birth date, photo, address, phone…various❌No use for the mandateMinimisation✅

If the name is wanted, request given_name + family_name individually via the claims parameter — not the whole profile scope.

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.

Generated 2026-11-30 by documentation/build.mjs · edit the Markdown, never this HTML.