Architecture & security
Tokens and keys
Every token, key and credential in the system; the mandate JWT claim by claim; and how a provider actually decides to grant access.
Built from 5 source documents
- Jetons & accès au prestataire (PDS) Reference
- Spécification v1 — acteurs, composants, flux Reference
- Liaison de compte (provider_account_ref) Proposed design
- POC cross-module contracts (frozen wire) POC
- Raw Q&A transcript (base project analysis) Raw transcript
The short answers
| Question | Answer |
|---|---|
| Is the bearer token sent to the provider the one Veritia issues? | Yes. The mandate (Agent Delegation Token) is the credential on the tool-call path. There is no second token. |
| How is it created? | Veritia signs it alone, with its own private key, after itsme + the form. |
| Does the provider take part in creating it? | Not in the signature. It registered (Phase 0), chose to trust Veritia's issuer, optionally publishes RFC 9728 metadata, and vouches for the account (account linking). |
| Does the token contain the proof of possession? | No. It contains the agent's public key (cnf). The proof is a separate signature, per request. |
| Does the token open the provider's endpoints automatically? | No. It carries verifiable claims. Access results from a rule the provider wrote, re-checked every call, plus its own business rules. |
Inventory — every token, key and credential
| # | Artifact | Created by | Lives | Used by | On the network? |
|---|---|---|---|---|---|
| A | Veritia private key (RSA/EC) | Veritia | Veritia cloud (HSM/KMS ideally) | Signing mandates | Never |
| B | Veritia public key | Veritia | JWKS endpoint | Provider (verifies mandates) | Publicly |
| C | Agent private key (Ed25519) | Local tool / SDK init | User's machine, restricted file | Signing each proof | Never |
| D | Agent public key | idem | Pasted in the form → sealed as cnf.jwk | Provider (verifies proofs) | In clear |
| E | itsme ID token (signed and encrypted) | itsme | Read once by Veritia, discarded | Veritia | Once |
| F | itsme access token | itsme | Discarded after optional /userinfo | Veritia | Once |
| G | client_assertion (Veritia → itsme) | Veritia | Ephemeral | itsme (authenticates Veritia) | Once |
| H | Provider discovery credential (optional) | Provider, given to Veritia | Veritia cloud | Veritia, for tools/list only | Per discovery |
| I | Mandate JWT (RS256, typ: at+jwt) | Veritia, signed with A | Shown → local file → every call | Provider | Every call |
| J | Proof of possession — a signature, not a token | Local tool, with C | Ephemeral | Provider, once | Every call |
| K | Provider's RFC 9728 metadata (recommended) | Provider | Its server, public, cacheable | Any MCP client | Public |
| L | Provider's own IdP tokens | Provider | Provider | Its other endpoints — alongside Veritia's, never replaced | — |
| M | Provider key pair | Provider | Provider | Its own signatures, the account-link assertion | — |
| N | Account-link assertion | Provider | Mandate-creation session, discarded after extraction | Veritia → provider_account_ref | Once |
| O | Veritia → provider OIDC credential (recommended linking variant) | Provider | Veritia cloud | Back-channel code exchange | Per hand-off |
Only I is on the tool-call path; J accompanies it. E/F/G never leave the itsme ↔ Veritia segment; N/O never leave the provider ↔ Veritia segment and never reach the local tool.
The mandate JWT
Target claim set (spec) — the POC freezes the exact bytes in contracts §1.
// header: { "alg": "RS256", "typ": "at+jwt", "kid": "<current Veritia key>" }
{
"iss": "https://veritia.eu", // who issued — a provider must have chosen to trust it
"aud": "<canonical URI of the provider's MCP server>", // RFC 8707 — rejects tokens meant for another provider
"sub": "itsme:be:<pseudonymous id>", // the human (imputability)
"act": { "sub": "<agent id / label>" }, // RFC 8693 actor — the agent acting for sub
"cnf": { "jwk": { "kty": "OKP", "crv": "Ed25519", "x": "<agent public key>" } }, // RFC 7800 — PoP anchor
"provider_account_ref": { // which of the provider's customers — vouched by the provider
"value": "<opaque pairwise id>", "source": "oidc_silent | signed_assertion",
"asserted_at": 1786536000, "provider_jkt": "<thumbprint of the provider key that vouched>"
},
"iat": 1786536000, "exp": 1786622400, // short-lived (target ~15 min + refresh; POC 1 h)
"jti": "<mandate uuid>", // correlation + revocation key
"purpose": "<free text, declarative>",
"disclosed_scope": {
"allowed_tools": ["get_balance"],
"tool_constraints": { "<tool>": { "...": "..." } },
"binding": false,
"note": "Declared by the human at issuance, not verified by the platform. The provider alone enforces."
},
"transparency": { "is_ai_agent": true, "audit_log": "https://veritia.eu/audit/<jti>" }, // AI Act Art. 50
"revocation_check": "https://veritia.eu/introspect/<jti>" // RFC 7662-style
}Nothing in it is supplied live by the provider — aud designates the provider but comes from Veritia's DB.
Disclosed scope
- Declarative and non-binding (
binding: false, in the token itself, not only in the T&Cs): the provider must not treat it as an authorisation, and cannot claim to have relied on a Veritia guarantee. allowed_toolsis universal.tool_constraintshas no fixed schema — it only contains what the provider's tool schemas make meaningful (a read-only provider has none).- Static, issued once — never recomputed per call (keeps clear of Daon's claim 1).
Privacy of the claims
The mandate is a JWS (signed, not encrypted) by design: the provider must read every claim, the human
must be able to inspect it, transparency demands it. Consequences: TLS mandatory outside localhost,
claim minimisation (pseudonymous sub, opaque pairwise provider_account_ref, no IBAN in the token),
and redact Authorization/DPoP headers from logs and APM — the realistic leak path is after TLS termination.
A provider with stricter needs could get a nested JWE as a per-provider option.
The provider's integration choice
The provider decides, once, how its resource server recognises Veritia's mandates:
| Option | Principle | For | Against |
|---|---|---|---|
| A. Multi-issuer | Its existing resource server also accepts tokens signed by Veritia's JWKS (resolved by iss, e.g. Spring's JwtIssuerAuthenticationManagerResolver), plus PoP | Reuses already-audited infrastructure | Changes the core trust config — consciously |
| B. Isolated route | MCP endpoints on a separate path with their own filter that checks only mandate + PoP | No risk to the core system; easy to switch off | One more security component to maintain |
Either way it stays behind the provider's TLS, gateway, WAF and rate limiting. It is never "try Veritia's
filter, else fall back to basic auth" for the same request. The POC uses B (/mcp/**).
How access is actually granted
The provider has written a rule like:
A request on
/mcp/**is authenticated if the bearer is a JWT signed byhttps://veritia.eu(its JWKS), not expired, not revoked (introspection), withaud= me, accompanied by a valid proof against the JWT'scnf. Then the caller is {humansub, agentact.sub}, allowed to use my tools within my business rules.
The trust chain: Veritia's legal check of the provider at registration (and the provider's evaluation of Veritia)
→ the provider configures its resource server (A or B) → optionally publishes it via RFC 9728
(authorization_servers: ["https://veritia.eu"]) → every call: signature + exp + revocation + aud + PoP
→ its business rules.
Analogies
- A specialised Keycloak. Toward the provider, Veritia plays exactly an Authorization Server (JWKS, introspection, signed JWTs — the MCP spec assigns this role). But: the token is pre-provisioned, not minted in a live redirect; its scope is non-binding; PoP is mandatory; it authenticates only the pair {itsme human, their agent key}; it never says "allow this action".
- The boarding pass. itsme = passport control; Veritia = the desk issuing the boarding pass (this passenger,
this flight =
aud, this class =disclosed_scope, expires at gate closing =exp, photo stapled =cnf); the proof of possession = "your face matches the photo"; the provider's filter = the gate agent; its business rules = whether the flight boards and whether you're flagged. The desk is never at the gate.
Deviation from OAuth 2.1 / MCP "by the book"
| OAuth 2.1 / MCP standard | Veritia | |
|---|---|---|
| Getting the token | Live browser redirect, PKCE, token minted at that moment | Minted once in advance (itsme + form), then provisioned to the local tool |
| Why | — | No-code agents have no browser on the agent side; the MCP spec exempts stdio transports ("retrieve credentials from the environment") |
| What we still get | Audience-bound token | Audience binding plus mandatory PoP |
| Document as | — | A deliberate deviation in the integration guide — not "we follow MCP to the letter" |
Lifecycle
| Artifact | Born | Used | Dies |
|---|---|---|---|
| Agent key (C/D) | Phase 1 | Every call | When the agent is retired (POC: init --force regenerates and breaks every mandate on the machine) |
| itsme tokens (E/F/G) | Phase 2 | Seconds | Discarded |
| Mandate (I) | 2.7 | Every call | exp or revocation |
| Proof (J) | Each request | Once, < 1 s | Immediately |
| Discovery credential (H) | 0.1 | 0.2 / 0.6 | With the integration |
| Veritia keys (A/B) | Install | Always | Rotated via kid in JWKS (cadence still open) |
Still open on tokens
Exact aud value (opaque id vs canonical URI — the POC uses the URI) · RFC 9728 mandatory or recommended ·
PoP on discovery too? · fail-open vs fail-closed · default integration option to recommend · revocation model ·
exact PoP header form (proof of possession) · typ/alg confirmation · key
rotation of A/B · DPoP-Nonce · formal security review against RFC 9700/8725/9449 · agent-key strategy
(local tool). All in open questions.