Proof of concept
POC components
Each POC module — what it does, its endpoints or screens, its data, and where its detailed spec and test guide live.
Built from 6 source documents
| Module | Folder | Spec | Manual test guide |
|---|---|---|---|
| Platform stub | poc-code/platform/stub/ | platform spec Part A | stub TESTING |
| Angular SPA | poc-code/platform/spa/ | platform spec Part B | SPA TESTING |
| PDS (Banque Test) | poc-code/pds/ | PDS spec | PDS TESTING |
| Outil Local | poc-code/outil-local/ | Outil Local spec | MANUAL-TESTING |
| Deploy | poc-code/deploy/ | deploy spec | full-stack testing guide |
Platform stub (Node / Express, port 3000)
The machine-facing half of "the platform": only what a downstream process genuinely verifies, plus what the SPA
needs to survive a reload. In-memory Maps (restart ⇒ re-register + re-mint). Fails fast if its signing key is
missing (never auto-generates — that would silently change the JWKS the PDS caches).
| Endpoint | Caller | Purpose |
|---|---|---|
GET /jwks.json | PDS filter | Platform public key (RSA, kid platform-poc-1) |
POST /discover | SPA registration | Server-side MCP initialize → tools/list (dodges browser CORS) |
POST /providers · GET /providers/:id | SPA | Finalise registration / look up a provider |
POST /account-link/initiate | SPA espace-client | Fetch + verify the PDS-signed assertion, open a 600 s link session |
POST /mandates | SPA mandate form | Sign the mandate, consume the link session, mint a setup code |
POST /setup-codes/:code/redeem | mcp-server setup | Return mandate + endpoint + label once; 404 unknown/used, 410 expired |
GET /introspect/:jti | PDS filter, every call | active:true / false (revoked, expired) / 404 |
POST /mandates/:jti/revoke | SPA dashboard, "Replace" flow | Flip to REVOKED |
GET /mandates?itsme_sub= | SPA dashboard, collision check | List; 400 if itsme_sub missing (never "all") |
GET /audit/:jti | SPA dashboard | Platform trace |
GET /health | — | Liveness |
Angular SPA (port 4200, ng serve)
All platform screens, with persona-coloured "Espace particulier" / "Espace professionnel" spaces.
| Route | Persona | Purpose |
|---|---|---|
/ · /connexion | anyone | Landing page; persona chooser (Particulier / Professionnel) |
/admin/login | Professional | Fake login admin@bqt.example / demo |
/admin/register | Professional (guarded) | 2 steps: provider identity (company, BCE/KBO number, contact — declarative) → technical integration: endpoint → Découvrir → deterministic review → J'accepte → provider_id + link |
/pds-space?provider= | Individual | Mock "Banque Test — Espace client": pick the customer → Configurer un agent IA → signed account link |
/itsme | Individual | Fake itsme: pick one of 3 identities |
/mandate/new?provider= | Individual (guarded chain: link session, then itsme) | Step 1 "Installer l'outil local" (shown every visit — the platform cannot see the user's machine) → step 2 form: agent public key, label (<provider>-<firstname>), purpose, expiry (1/8/24 h), tools + per-tool limits → collision check → success screen: one-line setup command, raw config block, client-recipes accordion |
/dashboard | Individual (guarded) | Mandates (VALID / REVOKED / EXPIRED computed client-side), Revoke, expand → Trace Plateforme + Trace Prestataire |
Known gaps: no provider update flow (re-registering creates a second provider_id); governance-ceiling inputs on the
review screen are display-only; no automated SPA tests.
PDS — Banque Test (Spring Boot, port 8081)
The verifier. Keeps its existing Keycloak-protected REST layer untouched and adds an isolated MCP route.
| Endpoint | Auth | Purpose |
|---|---|---|
GET /accounts/me | Bank Keycloak token (bqt realm, role CUSTOMER) | "This service already exists" — demo beat 1 |
GET /pds-jwks.json | public | The PDS assertion key (bqt-assertion-1, Ed25519) |
POST /account-link/assert | X-Poc-Dev-Auth shared secret (mock of the customer's session) | Signs a 300 s account-link assertion |
POST/GET /mcp | initialize, notifications/initialized, tools/list exempt; tools/call → full 19-step filter | MCP tools get_balance (no params) and list_transactions (max_results 1–50, period 7j/30j/90j) — both readOnlyHint: true |
GET /mcp-audit/:jti | public, CORS open, read-only | Trace Prestataire (200 [] for unknown jti) |
Data (H2 file mode, Flyway): customer, account, account_link (the PDS's own provider_account_ref → customer
table, seeded for the POC), transaction (22/28/34 rows), mcp_call_audit. DPoP replay cache in memory.
Known limitation: generic Streamable-HTTP clients that open the GET /mcp stream before calling (e.g. the MCP
Inspector CLI) can't do anonymous discovery — the exemption only inspects POST bodies; exempting GET /mcp entirely
was deliberately left as a product-owner decision.
Outil Local (TypeScript, on the Windows host)
Modes init (+ --force, --show), setup <url>, runtime. See local tool.
Deploy
deploy/compose.yaml: pds-keycloak (Keycloak 26, realm imported from pds/docker/realm-export.json,
KC_HOSTNAME=pds-keycloak to pin the issuer, TCP healthcheck on management port 9000), web-platform-stub,
pds (waits for Keycloak healthy). gen-keys.sh creates the platform RSA key once (git-ignored).
demo/run-boot.sh automates build + boot + health checks; always podman compose up -d --build (a stale cached image
once hid a code change). Containers talk by service name; the host (SPA, Outil Local, browser) uses localhost; the
token aud stays http://localhost:8081/mcp everywhere (an identifier, not an address).