VVeritia documentation

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

The short answers

QuestionAnswer
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

#ArtifactCreated byLivesUsed byOn the network?
AVeritia private key (RSA/EC)VeritiaVeritia cloud (HSM/KMS ideally)Signing mandatesNever
BVeritia public keyVeritiaJWKS endpointProvider (verifies mandates)Publicly
CAgent private key (Ed25519)Local tool / SDK initUser's machine, restricted fileSigning each proofNever
DAgent public keyidemPasted in the form → sealed as cnf.jwkProvider (verifies proofs)In clear
Eitsme ID token (signed and encrypted)itsmeRead once by Veritia, discardedVeritiaOnce
Fitsme access tokenitsmeDiscarded after optional /userinfoVeritiaOnce
Gclient_assertion (Veritia → itsme)VeritiaEphemeralitsme (authenticates Veritia)Once
HProvider discovery credential (optional)Provider, given to VeritiaVeritia cloudVeritia, for tools/list onlyPer discovery
IMandate JWT (RS256, typ: at+jwt)Veritia, signed with AShown → local file → every callProviderEvery call
JProof of possession — a signature, not a tokenLocal tool, with CEphemeralProvider, onceEvery call
KProvider's RFC 9728 metadata (recommended)ProviderIts server, public, cacheableAny MCP clientPublic
LProvider's own IdP tokensProviderProviderIts other endpoints — alongside Veritia's, never replaced—
MProvider key pairProviderProviderIts own signatures, the account-link assertion—
NAccount-link assertionProviderMandate-creation session, discarded after extractionVeritia → provider_account_refOnce
OVeritia → provider OIDC credential (recommended linking variant)ProviderVeritia cloudBack-channel code exchangePer 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.

jsonc
// 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_tools is universal. tool_constraints has 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:

OptionPrincipleForAgainst
A. Multi-issuerIts existing resource server also accepts tokens signed by Veritia's JWKS (resolved by iss, e.g. Spring's JwtIssuerAuthenticationManagerResolver), plus PoPReuses already-audited infrastructureChanges the core trust config — consciously
B. Isolated routeMCP endpoints on a separate path with their own filter that checks only mandate + PoPNo risk to the core system; easy to switch offOne 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 by https://veritia.eu (its JWKS), not expired, not revoked (introspection), with aud = me, accompanied by a valid proof against the JWT's cnf. Then the caller is {human sub, agent act.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 standardVeritia
Getting the tokenLive browser redirect, PKCE, token minted at that momentMinted 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 getAudience-bound tokenAudience binding plus mandatory PoP
Document as—A deliberate deviation in the integration guide — not "we follow MCP to the letter"

Lifecycle

ArtifactBornUsedDies
Agent key (C/D)Phase 1Every callWhen the agent is retired (POC: init --force regenerates and breaks every mandate on the machine)
itsme tokens (E/F/G)Phase 2SecondsDiscarded
Mandate (I)2.7Every callexp or revocation
Proof (J)Each requestOnce, < 1 sImmediately
Discovery credential (H)0.10.2 / 0.6With the integration
Veritia keys (A/B)InstallAlwaysRotated 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.

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