VVeritia documentation

Architecture & security

Account linking (provider_account_ref)

How the provider tells Veritia which of its customers is creating a mandate — the three variants, the claim it produces, and what the POC builds.

Built from 6 source documents

The problem

The scope in the mandate is declarative (binding: false): only the provider knows and applies the customer's real limits (accounts, caps, products, whether the agent channel is enabled). For that it needs one thing the token didn't carry: a reliable pointer to "which of my customers this is". Account linking creates, proves, carries and resolves that pointer — without making the scope binding and without putting Veritia in the transaction path.

It also answers "how do we know the person creating a mandate for bank X is really a customer of bank X?": only a customer authenticated at the bank can get the bank to vouch for them.

Two identities, one session

Sovereign identityIdentity at the provider
AnswersWhich natural person (eIDAS)?Which of my customers, in my DB?
Produced byitsmeThe provider itself
Lands in the JWT assubprovider_account_ref
Used forImputability, non-repudiation, re-loginResolving the real business rules (4.6f)
Verified byVeritia (2.4)The provider (4.6f) — never Veritia

Both are bound in the same mandate-creation session before signing: "the person controlling this itsme identity is the same session the provider recognised as its customer provider_account_ref, at this moment." A dispute needs both identifiers.

Where it fits

The provider's "Configure an AI agent" button (2.0bis) becomes a signed identity hand-off (2.0ter / 2.0quater), then the normal itsme login follows. Nothing else in the flow changes.

sequenceDiagram
    actor H as Human
    participant PDS as Provider (customer area, logged in)
    participant VP as Veritia
    participant IT as itsme
    H->>PDS: 2.0bis clicks "Configure an AI agent"
    PDS->>VP: 2.0ter hand-off (signed assertion, or a code to exchange)
    VP->>PDS: 2.0quater (Variant 1) back-channel: code → id_token
    VP->>VP: verifies via the provider's JWKS (known since Phase 0)
    H->>VP: 2.1 "Sign in with itsme"
    VP->>IT: 2.2–2.4 OIDC
    IT-->>VP: pseudonymous identity
    Note over VP: session = { provider_id, provider_account_ref, itsme identity }
    VP-->>H: 2.5 form … 2.7 mandate signed with provider_account_ref inside

The three variants

V1 — silent OIDC (recommended)V2 — front-channel signed assertionV3 — shared identifier ("Approach 1")
PrincipleStandard OIDC with the provider as OP and Veritia as RP, prompt=none (the session already exists — no re-login), code exchanged in back-channel; the id_token's pairwise sub = provider_account_refThe provider signs a short JWT (iss=provider, aud=Veritia, sub=opaque ref, exp ≈ 2–5 min, single-use jti, optional accounts[]) carried by the redirect itselfNo hand-off: the token carries an identifier the provider already has
Provider must buildAuthorization + token endpoints (often already there)Emission of a short signed JWTNothing — but needs a common identifier
Replay resistance✅ strong (single-use code, exchange authenticated by Veritia's credential)⚠️ a window of minutesn/a
Main weakness—Fixation: an attacker who captures the victim's assertion and completes their own itsme login gets a mandate linking their identity to the victim's account. Closing it needs browser binding (cookie / PKCE-style challenge) — undecided.itsme sub is pairwise per RP (would need a sector identifier, unverified); the national register number is blocked in V1 (legal)
RecommendationDefaultPOC / small providerFallback only

Visual walkthrough of V1 vs V2: explainer.

The provider_account_ref claim

jsonc
"provider_account_ref": {
  "value": "<opaque, pairwise id from the provider>",
  "source": "oidc_silent | signed_assertion",
  "asserted_at": 1788000000,
  "provider_jkt": "<thumbprint of the provider key that vouched>"
  // POC adds: "assertion": "<the raw provider-signed JWS>" so the provider can re-verify it
}

Rules: opaque and pairwise (never an IBAN or national number; prevents cross-provider correlation if leaked) · vouched, not declared (never typed by the human, never guessed by Veritia) · self-sufficient (the provider needs no jti → customer table) · optional per provider (undecided whether mandatory when the scope lists accounts or amounts) · not sub.

What the provider does with it (4.6f)

Order matters: first validate the whole mandate (signature, exp, revocation, aud, PoP); only then read provider_account_ref and resolve it against its source of business truth — core banking / customer master for accounts, real limits, products and whether the agent channel is enabled (not necessarily its IdP, which only holds coarse roles). disclosed_scope stays a hint, never the ceiling.

What the POC builds

Threats specific to linking

ThreatProtected?
A human creates a mandate for an account that isn't theirs✅ — the ref comes from a session authenticated at the provider
Replay of a captured assertion✅ V1 / ⚠️ V2 (window of minutes)
Fixation: victim's assertion + attacker's itsme login✅ V1 / ⚠️ V2, undecided mitigation
Assertion from provider A replayed as provider B✅ — iss checked against registered providers, per-provider JWKS, aud = Veritia
A malicious provider vouches for the wrong customer❌ out of scope — the provider is trusted for its own customer base (like itsme for identity)
Correlation across providers via a leaked ref✅ if pairwise / ❌ if a provider sends a global id — forbid in the integration guide
Leak of the itsme identity ↔ account link Veritia now holds⚠️ new surface — encryption at rest, minimisation, retention, DPIA

Open decisions

Default variant offered (V1 only, or V2 kept for small providers) · provider_account_ref mandatory or optional · order provider-first vs itsme-first · browser binding for V2 · nature of both identifiers (pairwise vs stable — decide together with itsme sub) · accounts[] in the hand-off to feed the account picker · which credential authenticates the back-channel (reuse the discovery credential or a dedicated one) · which provider key signs · what happens when the provider rotates the ref · legal validation. See open questions.

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