Sentin8:Auth - Detailed Design Document
Audience: maintainers, reviewers, and architects modifying the service. For the overview read
README.md; for the functionality readBUSINESS.md. Every normative mechanism below names the RFC/OpenID specification it implements; the full register with links is §12 Standards Reference Register.
1. Scope & Context
Sentin8:Auth is the platform's single identity plane: the only issuer of every token family, the only JWKS authority, the DCR registrar, the RBAC substrate (roles, groups, nesting, membership provisioning API), consent grants, sessions, MFA/passkeys, SSO federation, webhooks, and the OID4VCI/SD-JWT wallet surface.
- Owns (schema
auth): identity + credentials (users, sessions, app passwords, MFA factors/challenges, WebAuthn challenges, reset/verify tokens, enterprise connections, SSO sessions), OAuth clients (incl. DCR records, federated credentials, M2M thumbprints), M2M scope grants, RBAC (roles, user_roles, groups, group_members, group_roles, role_nesting), consent grants (FAPI 2.0), wallet credentials + regulatory overlays + security profiles, actor tokens, webhook endpoints/outbox/attempts, signing keys, and the DBX producer tables (outbox,audit_journal,post_outbox). - Does NOT own: org/env business records (sys provisions those and
calls back via the provisioning API), tenant app instances, Shield
policy storage (sys's
policy_setsis the substrate; auth runs an engine on it), invitations (proxied to sys), e-signature (QES owned by the core platform's Sentin8:Sign service -signature_requestreturns NOT IMPLEMENTED until that integration lands).
Trust boundary note. Every caller sits behind Sentin8:Proxy TLS
termination; sentin8-tls injects the X-Sentin8-* context headers
(client-supplied copies stripped). Auth reads tenant context ONLY from
those headers - never from client-controllable request data (RFC 6819
§4.1.6 - request-parameter injection).
2. Runtime Architecture
Request lifecycle - authorization-code token issuance (FAPI 2.0 posture, platform profile):
M2M issuance (cert-bound, RFC 8705 - the out-of-band tenant path; the platform internal path is token-free, §4.3f):
Sign-in with TOTP + session pending-MFA activation (the MFA-SYNC contract, §3 state machine):
Identifier-first sign-in (IDFIRST-1) - the two-step split with
passkey-first factor (the hosted UI's step 2 routes on the identify
answer; POST /v1/sign-in itself stays single-shot and unchanged -
the same certified path serves the HTML /oauth/login surface, the
test bridge, and the device/assisted operator forms):
The continuation token is the login_page.rs HMAC-SHA256 blob pattern
(email|env_id|user_id-or-null|exp, 10-min TTL, context_key()):
stateless, no new secrets, no server-side storage. The identify step
never locks an account and never records a failed attempt - those
belong to the credential step.
Device Authorization Grant lifecycle (RFC 8628 §3.1-§3.5, per-request families):
The verification_uri is issuer-resolved per request
(resolve_issuer, the X-Sentin8-Hostname family) so a tenant host
device response points at the tenant's own verification page - never a
hardcoded platform host. The device-authorization response (which
carries the device_code secret) is served with Cache-Control: no-store. Polling MUST honor the returned interval; slow_down is
emitted when a poll arrives sooner (RFC 8628 §3.5) and the client
MUST add +5s.
3. Data Model
- RLS: FORCE RLS on all tenant tables (env policies; junctions carry
their own
env_idfor direct RLS;role_nestinggated on the parent role's env). No-RLS exceptions (platform-internal):m2m_dcr_credentials(auth's own workloads only),m2m_scope_grants(anonymous DCR endpoint evaluates server-side),webhook_attempts(relay-written), andactor_revocations(USING (true)- revocation is jti-scoped, not env-scoped). Context setting isasync+.awaited and transaction-local on the SAME connection as the query (§5). - State machines:
Session pending-MFA contract (MFA-SYNC invariant 1). A session row
created for a TOTP-enrolled user lands as status='pending_mfa' and is
NOT a valid session: Session::find_by_token (and therefore every
session-authenticated surface - /v1/session, /device/verify, CIBA
assisted-complete, cookie-authenticated mutations) rejects it until
/v1/mfa/verify flips it to active. The pre-MFA token id the client
holds is thus a capability to complete MFA, never a session; the MFA
enforcement follows the session STATUS, not cookie delivery. The
needs_mfa sign-in response carries the wire fields the UI parses:
{status: "needs_mfa", pending_token_id, factor_id}.
Device-flow session gate (RFC 8628 §3.3). /device/verify accepts
only an active session - a pending_mfa session is rejected with 401
"mfa required", so a password alone can never approve a device for an
MFA-enrolled user; the verifying user must complete TOTP first. The
approving identity (user_id, env_id) is stamped from the session,
never the request body.
Device-flow record contract (Valkey, TTL 900s).
auth:device_code:{device_code} holds
{client_id, scope, audience, user_code, status} where status is
pending | approved | denied; the mirror key auth:user_code:{user_code}
maps to the device_code for the verification page (entered or URL-carried).
approved records gain {user_id, env_id} (stamped from the approving
session). On token issuance both keys are deleted (single-use).
- Secrets posture: TOTP secrets, webhook secrets, client secrets are
encrypted (
secret_cipherBYTEA / hash); signing keys persisted AES-sealed under the master key; secret references only - no plaintext secrets in any table (credential-theft class, RFC 6819 §4.4). Key-material encoding invariant: the in-memoryStoredKeyPEM members (ec_pem_b64,rsa_pem_b64) are ALWAYS standard-base64 of the PKCS#8 PEM text - the generate, load, and persist paths agree on one alphabet. The OID4VCI signed-metadata inline signer and the OID4VP request-object signer decode these members with the standard engine; a URL-safe mismatch at any mint path silently degrades the signed metadata to the ML-DSA-65 header form (nojwkmember - the suite'sVCIDecodeSignedCredentialIssuerMetadatahard-fails) and the verifier request object tono EC PEM material. - OIDC claim data (§9a.4): the
userstable carriesphoneand the postal-address columns (street_address,locality,region,postal_code,country) - written through the admin user surface, read at the ID-token/userinfo mint gated on the consentedphone/addressscopes. The OIDCaddressclaim is the spec's JSON object assembled at mint time. - Seeds: platform admin user + role/nesting catalog +
dash(public PKCE, dpop_exempt) +sentin8-cli(device flow) clients. Thesentin8:sys:adminrole's OWN permissions are exactly['sentin8:sys:admin'](theis_platform_adminmarker scope); all other scopes come from NESTED service-admin roles. The seed NEVER empties that permission set - the bootstrap admin would lose platform admin on a fresh install.
4. API Surface
The complete route inventory with per-family spec anchors lives in §10. In brief:
| Audience | Group | Gate |
|---|---|---|
| public | /.well-known/*, /oauth/* protocol endpoints, /v1/sign-in|up|out, /v1/health | session/cookie or client auth per flow; bot protection + lockout on sign-in (RFC 6749 §10.4) |
| identifier-first | POST /v1/sign-in/identify, POST /v1/passkey/sign-in/{begin,finish} | bot gates on identify (same windows as sign-in; no lockout/failure recording - credential steps own those); passkey begin gated by the HMAC continuation token; passkey finish = WebAuthn ceremony checks (§2 IDFIRST-1 diagram) |
| device | POST /oauth/device (RFC 8628 §3.1), POST /device/verify (§3.3) | device: client auth (public allowed) + per-client grant_types/scopes gate; verify: active session only (401 for pending_mfa) + CSRF |
| mTLS | /mtls/oauth/token, /mtls/oauth/revoke | cert-presence guard (RFC 8705 §5) |
| workload | POST /oauth/register (DCR, RFC 7591) | interactive clients open; client_credentials-only requires mTLS cert scope-proof (§8) |
| delegated | POST /delegate/access-token | verified M2M bearer + sentin8:delegate:read + cnf match (RFC 8693) |
| wallet | /oauth/credential, /oauth/deferred_credential, /oauth/nonce, /oauth/notifications, /oauth/vp/response, /oauth/credentials/* | bearer/DPoP + proof verification (OID4VCI §7.2) / VP verified (SD-JWT) |
| consent | /v1/auth/consent/* | session-validated; proxied to owning vertical |
| admin | /v1/admin/* + SDUI UI | route_guard + Shield |
| provisioning | /v1/admin/provision/* | admin bearer + target-env header, idempotent upserts |
| SCIM | /scim/v2/* | sentin8:scim:read/write (RFC 7644 §2.2) |
| recovery | /v1/password/reset(+confirm), /v1/email/verify(+confirm) | none (enumeration-safe, token-gated confirm) |
OpenAPI spec. The single source of truth for the served surface is
the #[utoipa::path] annotations + the #[openapi(paths(...))] list in
src/openapi.rs; docs/openapi.json is the dumped artifact via
--print-registration -section=openapi (regenerated, never hand-edited).
The generic Shield handlers bind annotated wrappers in src/policy_docs.rs
and the SDUI POST-aliases bind src/sdui_aliases.rs.
Tenant-aware issuer on every token mint (OIDC Core §3.1.3.7). iss
is https://auth.{env-domain} - the tenant's own auth host, where the
env domain is opaque (never structurally parsed). Discovery resolves
it from the TLS-injected X-Sentin8-Hostname (resolve_issuer); every
mint site resolves the same way so a tenant's tokens carry the tenant's
issuer. Token verification admits the https://auth.* issuer family
(the JWT signature - Auth is the single issuer - is the trust anchor;
the iss form is a sanity gate, never domain-coupled to the platform
TLD).
Drift guard. tests/openapi_drift.rs asserts BOTH directions - every
served route appears in the compiled spec and every spec pair is served -
via the shared shell helper (sentin8::shell::drift_guard). The spec
carries 185 operations (the 150-op floor is pinned by
spec_carries_the_full_documented_surface); runs require the sourced
root env + SQLX_OFFLINE=true (a bare cargo test cannot resolve the
TLS-only PostgreSQL - the 164 connection requires a valid client certificate query errors are the wrong-env symptom).
Event flow (outbox → Bus):
Event family auth; names
sentin8:auth:{user,role,group,client,credential,apikey,session,membership,dcr,connection,mfa,passkey,actortoken,securityprofile,webhook,grant,ciba}:{action}
- payload-complete envelopes. Session revocations emit
sentin8:auth:session:revoked{subject_id, env_id, session_id, revoked_by, reason}- the BFF session-reaper consumes them (continuous access evaluation). Grant lifecycle emitssentin8:auth:grant:created({grant_id, client_id, user_id, env_id, scope, state, selected_account_ids}) - the authorization server is the seed of open-banking grant truth; revocation emitssentin8:auth:grant:revoked.
5. Cross-Cutting Concerns
- Token verification is SDK-reused by every service
(
sentin8::auth::client) - auth is the only JWKS authority (RFC 7517 key set, RFC 7518 JWA). - Sender-constrained tokens. DPoP (RFC 9449): proof validation
(htm/htu/iat/nonce/ath) with jti replay protection (SETNX keyed on
thumbprint·jti, §8);
cnf.jkton access tokens;dpop_exemptper-client flag. mTLS (RFC 8705):cnf.x5t#S256cert-binding. Both specs are implemented END-TO-END - nothing half-way. - Rate limiting / bot protection: IP 10/min, email 5/min sliding
windows; 5 failures → durable
lockedstatus (config TTL); dummy bcrypt compare on unknown accounts (no email enumeration on the credential step, RFC 6749 §10.4 / RFC 6819 §4.5.2). - Identifier-first disclosure posture (IDFIRST-1): the identify step returns per-user auth-method hints for known accounts (the industry pattern - step 2 must route to the right credential UI). This is a deliberate, scoped existence disclosure: its leak equals the sign-up 409 "email already exists" oracle, it is throttled by the SAME IP/email Valkey windows, and unknown emails answer the identical 200 shape (synthetic continuation token, default methods) so bulk probing stays rate-limited rather than status-differentiated. The credential steps keep the strict posture: password failures stay uniform 401s, passkey finish never confirms or denies a specific credential id.
- FAPI 2.0 posture: platform profile enforces PAR (RFC 9126) + JARM
- DPoP (RFC 9449) + issuer parameter (RFC 9207) + 900s max token
lifetime + refresh rotation; env/org profiles override
(
security_profiles).
- DPoP (RFC 9449) + issuer parameter (RFC 9207) + 900s max token
lifetime + refresh rotation; env/org profiles override
(
- Introspection honesty:
none-auth clients hard-rejected;application/token-introspection+jwtsigned responses (RFC 9701) per profile; plain JSON (RFC 7662) otherwise. - Back-channel logout + live session state (OIDC Back-Channel
Logout + Session Management): logout tokens carry
events/sid, NOnonce(per spec), fan-out exactly to the registeredbackchannel_logout_uriclients the destroyed session logged in (session_clients);session_stateis minted on every interactive authorize, served live through thecheck_sessionendpoint + iframe shim, and RP-initiated logout revokes the OP session so the next poll answerschanged. DCR + client management accept and echobackchannel_logout_uri,backchannel_logout_session_required, and an httpsinitiate_login_uri(§9a.26). - No-store on token endpoints (RFC 6749 §5.1, RFC 7662 §4,
RFC 8705 §5): middleware enforces
no-store/no-cacheon/oauth/{token,introspect,revoke}+/mtls/*.
4.3f Token-free platform M2M - the certificate is the service identity
Platform workloads authenticate with no token at all: the caller presents
its Acme-issued client certificate (CN=m2m-{workload}) in the TLS
handshake, sentin8-tls CA-verifies it and injects
X-Sentin8-Client-Cert-Subject / -Thumbprint headers (client-supplied
copies stripped), and the receiving service trusts those headers exactly as
it trusts X-Sentin8-Env-Id - the TLS layer is the authentication. Auth's
role in platform M2M shrinks to issuing identity material (the
certificate, via Acme) and provisioning the authorization record (the
grant rows, via vertical enroll). No M2M JWT is minted, fetched,
cached, or verified for platform service→service calls.
Why (the defect class this closes): the M2M token was a second identity
surface that had to stay synchronized with the certificate identity across
three stores (SDK credential cache → oauth_clients → JWT claims). A
database reset desynchronized them by construction - cached client_ids
outlived their rows - producing the fleet-wide
M2M token fetch failed: status 401 storm after every reset. A token is
also a redundant proof: the TLS handshake ALREADY establishes exclusive
possession of the certificate's private key on every call; a bearer minted
from that same possession adds no strength, only state.
The authorization record travels as the registry map. sentin8-cli vertical enroll provisions auth.m2m_scope_grants and publishes a
Valkey m2m:workloads hash -
{workload} → {vertical, service_type, scopes[], enabled} - and every
service boot-loads it and TTL-caches it (the platform's mandated pattern:
owner data is seeded on cold start / cache miss, never read on the request
path). This answers the three consumers the token previously fed:
| Consumer | Was (token claim) | Now (map field) |
|---|---|---|
Shield RequestCtx (scope-gated rules) | scope | scopes (roles: none - M2M workloads never had role assignments) |
| Bus event-ownership gate | vertical | vertical (produce + consume identity checks) |
Audit service stamp / Sys tenant-snapshot | sub (opaque hex) / service_type | CN directly / service_type |
Revocation is the map's enabled flag: vertical enroll (or the admin
surface) flips it, every service's cache observes it within the TTL, and the
workload's calls are refused. This is more immediate than the token path
(a minted token lives to expiry regardless). Handshake-level certificate
revocation (a stolen cert's validity) remains a follow-up .
Security posture: per-call proof-of-possession (the token was a pure bearer
at the target) and fleet-wide revocation. The multi-tenant boundary does not move:
tenancy was never carried by machine identity - the request's env
is authoritative for M2M, and RLS + explicit env_id clauses + Shield
remain the tenant gates. Two risks are ACCEPTED-AND-FILED:
- The map's write surface is authorization escalation. Any process
with Valkey write access can
HSET m2m:workloadsitself any scope set. Countermeasure: Valkey ACLs - m2m: * writes restricted to the operator/enroll writer identity; services hold a read-only reader identity. - Certificate lifetime bounds the theft window. 30-day default mint with load-path NotAfter verification and auto re-mint, alongside's CRL.
- Per-instance distinguishability collapses to the workload name (two
instances share
{workload}.crt) - accepted; audit identifies workloads, never instances.
**Invariants : **
- The certificate is the only platform-workload credential: no secret, no
bearer, no assertion. The
m2m-CN prefix is minted exclusively by Acme's guarded issuance channels (bootstrap enrollment - pinned to the declared set by; self-issuancesub == service_name; the enroll operator scope). - The TLS-injected headers are trustworthy because (a)
sentin8-tlsinjects them only after CA verification, (b) client-supplied copies are stripped before the app sees them, and (c) they exist only on TLS-terminated platform hops. - A workload can only ever exercise scopes its map entry allows (Shield evaluates from the map; policy rules are unchanged).
oauth_clientsand DCR survive for interactive clients (auth-code, device flow, BFF apps, dash) and out-of-band tenant clients (client_secret_basic/private_key_jwtper RFC 7523/RFC 7591) - Auth remains the single identity plane for every HUMAN-facing flow; the token-free plane covers machine-to-machine platform calls only.- Rejected: keeping the token as "extra" (it was the storm's root
cause and adds no proof beyond the handshake); services reading
auth.m2m_scope_grantsdirectly (§4.7 - the map is the transport, no cross-schema grants); a live Auth resolve API per request (per-request dependency, banned by the runtime discipline).
What is deleted for the platform path: /mtls/oauth/token
client_credentials use by platform workloads; the sentin8-m2m token
source, DCR helper, credential cache, boot probe, and 401 self-heal
machinery; build_with_dcr background DCR retries in bus-client; every
service's boot-time DCR block; the cli-producer / cli-delegator /
bff-delegator token workloads (the CLI and BFF present certificates);
BFF's env-credential fallback. Delegated tokens keep their cnf
cert-binding (unchanged) - BFF presents its certificate and receives a
delegated JWT (RFC 8693); only the workload's own M2M JWT disappears.
6. Failure Modes & Recovery
- JWKS rotation: insert-new-key overlap (all persisted keys published in the RFC 7517 set); old tokens verify until expiry.
- Session expiry: enforced by predicates; no sweeper (rows are harmless after expiry).
- DCR storm protection: anonymous DCR gated by
m2m_scope_grants(service must be enrolled) + cert channel possession proof. Platform workloads never DCR and never fetch tokens (§4.3f) - a DB reset can no longer strand cachedclient_ids; a missing grant row surfaces as a named workload refusal (workload not enrolled) from the registry map, fixed by enrollment. - Token-free M2M failure modes (§4.3f): certificate missing at boot → Acme mint (bootstrap channel, declared-set-pinned) → retry with backoff; map row missing/disabled → 401/403 until enroll/revocation is reverted; Valkey down at boot → services start with the last cache file / an empty map and refuse unenrolled workloads fail-closed; map edit → next TTL refresh reflects it.
7. Concurrency & Performance Model
- Sign-in hot path: 2 PG round-trips + 3 Valkey ops (rate, lockout, session); JWKS cached in every consumer SDK.
- Token minting: one signing op (ML-DSA-65 or RS256 per profile, §9a.9); key material cached in process.
- Webhook relay batches 25 per tick to bound endpoint fan-out.
- Post pusher identity is process-lifetime. The
auth-postTokenSourceis resolved once and reused across passes; a 401 triggers the m2m crate's single-flight self-heal - never a per-passregister_or_load_m2m_clientrebuild (a per-pass rebuild would run two PQ TLS handshakes + two token POSTs every 10s whose transient allocations ratchet glibc arenas).
7.1 Invalidation triggers on access-grant mutations (policy family)
Identity-cache invalidation (sentin8:auth:membership:created|deleted
on the SYSTEM-env policy stream; policy consumers (every service's M2M
workload) are registered in the SYSTEM env - that is the transport, not a
policy choice). The shell outbox relay holds exactly one M2M workload
(SYSTEM-env, sentin8:bus:produce), and Bus's produce gate
(env_id does not match the authenticated tenant) rejects any row whose
env_id differs from the token's env: tenant-env outbox rows can never
reach the policy stream. Therefore every mutation that grants or
revokes access emits, in the SAME transaction as the domain change, a
SYSTEM-env row (family policy, event
sentin8:auth:membership:created/deleted, payload
{"env_id": <tenant env>, "user_id": <subject>}) - the tenant-env
fan-out row for domain consumers stays, on the auth family. Covered
mutations: sign-up closure provisioning, admin group member add/remove,
and the cross-service provisioning endpoint. Emission is best-effort: an
RLS/failure drop logs and degrades to the RoleResolver TTL. The tenant
context on the emitting transaction is switched to SYSTEM for the
invalidation INSERT (set_config is transaction-local) and restored for
any subsequent tenant-plane statement.
8. Invariants, Insecure-Defaults Rejected, Unsafe Rationale
- Single identity plane - no other service mints tokens/JWKS; the
provisioning API is the only cross-service write path to
auth.*. - M2M is certificate-bound by default (RFC 8705) - a stolen token
without the key is useless; DCR for
client_credentialsrequires the mTLS cert channel (no dev fallback). scopeis not the decision - handlers never re-check scopes; step 5 resolves live identity (§5 pipeline).- Refresh rotation + jti denylist (FAPI-mandated rotation) - replay within TTL is detectable; fail-open only on cache outage (expiry predicates backstop).
- No existence oracle - uniform
invalid_client; dummy bcrypt on unknown accounts. - Tenant-scoped uniqueness - emails/roles/groups unique per
(env_id, …); sessions carrytoken_idUNIQUE. - Actor tokens are time-boxed and audited - TTL clamp ≤ 3600s,
auth.actor_events+ jti revocation table. - Keys persisted + encrypted; wrong/rotated master key refuses boot.
- No
unsafein the service; manual ML-DSA-65 signing wrapped in the crypto provider boundary. - No per-pass identity churn. Long-lived background pushers bind
their M2M
TokenSourcefor the process lifetime (§7). - Invalidation rows carry SYSTEM env (§7.1) - a tenant-env row is silently dropped by RLS at emit time and denied at the Bus produce gate - both fail closed.
- Auth reads
sys.app_instancesonly through Sentin8:App's owner API (no cross-schema grants). - DPoP jti replay cache is keyed on thumbprint·jti with bounded TTL (RFC 9449 §4.4 - jti single-use per window). A global jti cache (no key-owner binding) would let one client suppress another's proofs.
- Uniform HTTP error shapes on OAuth endpoints (RFC 6749 §5.2) -
client-auth failures return
401 invalid_clientwith a single JSON body shape; protocol errors never leak method-oracle detail. - RFC 9207 issuer parameter enforced end-to-end.
issrides the authorization response when the profile demandsrequire_issAND is validated to echo the discovery issuer. - DCR secrets are never logged or echoed back outside the initial registration response (RFC 7591 §5.3.1); management reads return metadata WITHOUT the secret.
- MFA enforcement is session-status, not cookie-delivery (MFA-SYNC):
a session row for a TOTP-enrolled user exists as
pending_mfaand no session-authenticated surface accepts it until/v1/mfa/verifyflips it toactive. The pre-MFA token id is a capability to complete MFA, never a session. - Device approval requires a fully-authenticated session (RFC 8628
§3.3 + §5):
/device/verifyrejectspending_mfasessions (401), stamps the approvinguser_id/env_idfrom the session (never the body), and supports BOTH approve and deny. - Device grants are client-constrained:
POST /oauth/devicerejects a client whosegrant_typeslacks the device_code URN (unauthorized_client). Requested scopes are validated at TOKEN time, when the approving user is known: the granted set is (requested ∩ client-registered scopes ∪ the approving user's live role scopes) - the CLI's role-union contract (role scopes are merged server-side, never enumerated per client row); a request outside both sets is dropped from the grant. The poll is bound to the originatingclient_id(mix-up defense). - Device codes are single-use and TTL-bounded (900s): both Valkey
keys (
device_code,user_code) are deleted at token issuance; the authorization response carriesCache-Control: no-store.
9. Testing Strategy
- OpenID certification live flows run against a dedicated local conformance rig (§9a) - the OIDF suite's own tests are not part of the in-service test binary. The rig is the pre-certification gate: every profile in §9a must be green locally before a certification submission is prepared.
- The in-process rig mirror (
tests/oidf_*.rs,).sentin8-auth-oidfis the source of truth for WHAT the certification campaigns test; the in-process layer asserts every campaign-observable wire BEHAVIOR directly (§9a.4 discovery honesty, §9a.14 request-object mandate table, §9a.16 message-signing posture, §9a.19 attestation auth, §9a.22 reject channels, §9a.23 logout error surface) WITHOUT the suite, the rig, or a browser - in-process on the same router the fleet boots. The rig run remains the certification gate; the mirror keeps every campaign-covered behavior regression-green in seconds (a rig run takes ~3.5h; the mirror iscargo test) so a wire change that would fail the rig fails CI FIRST. The mapping from rig modules → mirror tests is §9b. - Deliberately not covered in-service: real IdP SSO round-trips, PQ TLS transport (platform-level).
9a. OIDF Certification Program (conformance rig)
Sentin8:Auth is certified through the OpenID Foundation conformance suite (gitlab.com/openid/conformance-suite). The suite is open source and free to run; certification fees are waived for this project under the OIDF open-source project certification policy. The program covers every profile the platform implements except two deliberate exclusions.
9a.1 Certification scope (target state - zero gap)
The platform certifies EVERY OP-side profile cell the OIDF catalog lists for the plan families it ships (backlog OIDF-ALL-1/OIDF-ISO-1). Cell = one variant tuple of the suite's plan axes; the battery runs one plan per cell over a per-cell certification env (profile-per-env, §9a.2).
| Profile family | Catalog cells (the full matrix) | Suite posture |
|---|---|---|
| OIDC Core | Basic OP, Config OP, Dynamic OP | code flow + discovery + DCR; the response-type families below carry the other flows |
| OIDC Logout | RP-Initiated Logout, Back-Channel Logout, Back-Channel + RP-Initiated (joint) | both endpoints + the sid-bound fan-out (§9a.26) |
| OIDC Front-Channel Logout | Front-Channel Logout OP | frontchannel_logout_uri client registration + frontchannel_logout_supported/frontchannel_logout_session_supported discovery + the logout endpoint's per-client iframe redirects with iss/sid (§9a.28) - the former exclusion is CLOSED |
| OIDC Session Management | Session Management OP, Third-Party-Initiated Login OP | check_session_iframe + session_state + initiate_login_uri (§9a.26) |
| OIDC Response modes | Implicit OP, Hybrid OP, Form-Post OP | fragment + form_post channels per certification env (§9a.25) |
| FAPI 1 Advanced (final) | ALL 8 cells: client_auth_type (mtls | private_key_jwt) x fapi_auth_request_method (plain |
| FAPI-CIBA | Poll w/ MTLS, Poll w/ Private Key, Ping w/ MTLS, Ping w/ Private Key | bc-authorize + both delivery modes, both client-auth families (§9a.14) |
| FAPI 2 Security Profile (final) | ALL cells: sender_constrain (mtls | dpop) x client_auth_type (private_key_jwt |
| FAPI 2 Message Signing (final) | ALL cells (the same axes + JAR/JARM families) | per-cell env + client (§9a.16) |
The plain_oauth cells' plan-config scope drops openid. The
suite's FAPI2ProfileBehavior.initializeVariants rejects a plan whose
variant axis is plain_oauth while config.client.scope still carries
the openid scope value (openid scope cannot be used with PLAIN_OAUTH - an INTERRUPT at the module's variant initialization,
the plain_oauth cells' first happy-flow round). The conformance
harness therefore derives the per-cell config scope from the variant:
the openid_connect cells keep openid profile email phone address offline_access (the suite's isOpenId - the id_token mandate - reads
the SCOPE value, not the variant axis), and the plain_oauth cells send
profile email phone address offline_access. The REGISTERED client
scope (the seed's dcr body) stays unchanged for both - the AS accepts
a narrower request under a wider registration, and one scope body per
cell keeps the registration surface simple. No id_token is minted on
the plain_oauth cells and no suite check demands one (the OIDC
variants' id_token requirements ride the openid scope they keep).
| OID4VCI Issuer (1.0 Final + HAIP) | the full matrix over BOTH credential formats the VCI1FinalCredentialFormat axis carries (sd_jwt_vc + mdoc): vci_authorization_code_flow_variant (wallet_initiated | issuer_initiated) x vci_credential_offer_variant (by_value | by_reference, wallet-plan axis) | the credential-offer landing resolves BOTH offer forms (§9a.19 addendum); the mdoc format rides the same surfaces - the issuer metadata, credential, deferred, notification + nonce planes are format-generic, the mso_mdoc configurations mint through the §9a.29 engine (§9a.19x) |
| OID4VCI Wallet (HAIP) | the full matrix over BOTH credential formats (sd_jwt_vc + mdoc): wallet_initiated, issuer_initiated by_value, issuer_initiated by_reference (the WALLET-role plans over our issuer) | the oid4vci-1_0-wallet-haip-test-plan runs in the battery (§9a.19); the mdoc cells consume the suite-minted IssuerSigned via CreateMdocCredentialForVCI under the suite's IACA anchor (§9a.19x) |
| OID4VP + HAIP (verifier) | Wallet sd_jwt_vc direct_post.jwt, Wallet sd_jwt_vc dc_api.jwt, Wallet iso_mdl direct_post.jwt, Wallet iso_mdl dc_api.jwt, Verifier sd_jwt_vc direct_post.jwt, Verifier iso_mdl direct_post.jwt | the verifier accepts BOTH response modes (direct_post(.jwt) + the DC API presentation channel) and BOTH credential formats (sd_jwt_vc + iso_mdl/mso_mdoc) on the WALLET-role plans (§9a.27); the HAIP VERIFIER plan drives both formats - the iso_mdl verifier cell rides the suite's self-minted DeviceResponse (the suite's own pre-provisioned doc store: mDL/PhotoID/EU-PID) with the VICAL checks skipping clean when no VICAL is configured (the OIDF-VPERMDL-1 seat, §9a.27) |
| Identity Assurance (eKYC-IDA) | OP | claims/verified_claims at authorize |
Deliberate exclusions (design decisions, never to be reintroduced): NONE at the certification-scope level - the former Front-Channel Logout exclusion is closed by §9a.28, the iso_mdl exclusion by OIDF-ISO-1, and the VCI HAIP mdoc-format battery seats by OIDF-VCIMDOC-1 (§9a.19x). Jurisdiction overlays (UK-OB, AU-CDR, BR-OB/OF/OPIN, KSA, CBUAE, ConnectID AU) and the RP-side plans are OUT of platform scope by product decision: they repack the same plan families with jurisdiction-specific client configs (the underlying plans are the ones we certify); the RP-role certification belongs to relying parties, not the OP/issuer/verifier platform.
Profile-scoped response types (§9a.25). The standard platform
profile still serves response_types_supported: ["code"] only (the
implicit/hybrid types are deprecated by OAuth 2.1 and forbidden by
FAPI); the Implicit/Hybrid/Form-Post certification families enable the
other types on their own profile-gated environments - per-profile
discovery honesty, never a platform-wide default.
9a.2 Local conformance rig (how the tests run)
The certification pipeline is fully local and reproducible. No OIDF account or payment is needed until a certification submission is filed.
Rig mechanics:
-
Suite stack - the OIDF
docker-compose-prebuilt.yml(mongo + server + nginx) runs under.tmp/conformance/withBASE_URL=https://localhost.emobix.co.uk:8443, pinned viaIMAGE_TAG;localhost.emobix.co.ukresolves to 127.0.0.1 in/etc/hosts. 1b. Suite ingress TLS (no cert warnings) - the rig serves the suite ingress from a platform-CA server leaf:--ensure-infra-tlsmintsconformance-suite-server.crt/.key(CNconformance-suite, SANlocalhost.emobix.co.uk),make conformance-upcopies the pair into the compose build context, and the compose nginx service bind-mounts them over the image's self-signed paths (no image rebuild). -
Certification environments - profile-per-env . Each test family runs against its OWN environment (and its own suite alias) so every env's security-profile row is permanent - the whole battery (
npm run test/make conformance-all) runs the families in sequence with NO seed-order coupling, and two profiles could later run concurrently (the suite serializes per alias; distinct aliases de-conflict):env (org conformance-local)suite alias profile certsentin8-localstandardcert-fapi2sentin8-fapi2fapi_2cert-f2msentin8-f2mfapi_2_message_signingcert-fapi1sentin8-fapi1fapi_1_advancedcert-cibasentin8-cibafapi_cibacert-vcisentin8-vcivcicert-haipsentin8-haipvci_haipThe seed (
conformance-seed.sh) parameterizes the env slug + alias (CONFORMANCE_ENV_SLUG/CONFORMANCE_ALIAS, derivingauth.<slug>.conformance-local.<domain>+ the callback/test/a/<alias>/callback) and writes per-env seed-out files (.tmp/conformance/seed-out/<slug>.txt+cert-user-<slug>.env) - the flatseed-out.txtkeys (client_id(basic)) would collide across envs. Platform-side NOTHING changes: the profile resolves per-request fromX-Sentin8-Env-Id(TLS host-context resolve →sys.environmentsby slug), the issuer is host-derived, and Valkey keys carry the env in record VALUES (UUID identifiers) - no collision across parallel envs. Host DNS resolves the wildcard*.local.sentin8.dev; the suite container needs oneextra_hostsline per env host (conformance/docker-compose.yml), pinned to the host-gateway IPv4. One user per env (own email - the shared-email rate buckets stay per-env users). One test user with a known password per env, seeded through the platform API only (no direct SQL). The legacy single-env form (envcert, aliassentin8-local, flat seed-out) remains the DEFAULT for the standard family. 2c. Rig issuance mode (RIGMODE-3) - the rig selects the issuer, never the domain.SENTIN8_DOMAINcomes from the tree.envlike every other variable. This is deliberate: the domain scopes the CA hierarchy, the enrolled hostnames, and every issued leaf, so running against a different domain is a fleet RESET (wipe, re-mint, restart)- never an override layered on a live configuration.
make start-conformancerefuses to boot if the rig override file carriesSENTIN8_DOMAIN. What the rig does select is the certificate issuer, because that is a policy choice a test run legitimately changes without touching identity: internal(make conformance-acme-internal) - the platform CA signs everything and the upstream client is never constructed. The fully offline rig: no internet, no public-CA quota.upstream(make conformance-acme-upstream, withCONFORMANCE_ACME_UPSTREAM_URL) - hostnames ENROLLED asexternalrelay to that CA (acme DESIGN §4.1/§4.1b); the platform plane stays on the platform CA. The LE-signed leaves verify in every consumer (workspace reqwest runs native roots; the suite JVM trusts ISRG Root X1; the harness runs TLS-verification-off for the rig stack) with the platform CA additionally trusted everywhere. The selection rides ONE override block (conformance/domain.env, exported AFTER the.envsource line so it wins - a source line assigns unconditionally) carrying only the issuer vars: the force-internal flag, the upstream directory, the contact, and the proxy :80 port. A mode change forces a full fleet restart (leaf caches are hostname-scoped and source-filtered). The seed, harness, and compose derive the tenant hosts fromSENTIN8_DOMAIN(the composeextra_hostsentries carry the CURRENT suffix only - generated from the family table, no per-suffix hardcode). Ingress reachability: theinternalmode needs no inbound path. Theupstreammode REQUIRES internet-level inbound reachability on port 80 (and 443 for the TLS flows), because the upstream CA's http-01 validator connects from outside. On a WSL2 dev box the internet path ends at the Windows host - the VM sits behind the Windows NAT, so the last hop is an operator-providednetsh portproxyreconciled to the live VM IP (the group repo'sscripts/windows/wsl-portproxy.ps1+ the registered logon/refresh task; the rig runbook's "ingress reachability" section documents the path and the verification - an in-box hairpin probe is NOT a valid reachability verdict).
- never an override layered on a live configuration.
-
Suite-visible posture (classical mode) - the rig environment sets
SENTIN8_TLS_PQ_MODE=classical(TLS 1.2/1.3 + RSA/ECDSA certs, JWT signing RS256) because the suite's Java client cannot speak the platform's post-quantum-only TLS or verify ML-DSA-65 JOSE. The production posture (exclusive PQ) is unchanged; classical mode is the suite-compatible lens over the same protocol logic. -
Conformance clients - registered through the DCR endpoint (for Dynamic OP runs) or admin API:
client_secret_basic,client_secret_post,private_key_jwt(RFC 7523),tls_client_auth(RFC 8705), and a public PKCE client, each with the suite callbackhttps://localhost.emobix.co.uk:8443/test/a/{alias}/callback. -
Browser automation - the suite's browser-interaction tests are driven with a scripted test user (the harness in
sentin8-auth-oidf/). -
Result capture - runs export into
.tmp/conformance/results/; the gate is zero FAILED / INTERRUPTED / SKIPPED / WARNING (§9a.11).
The rig's honesty contract (the browser-automation placeholder + the skip classes). The harness replaces the suite's running-test-page browser loop - three hard rules keep the evidence real:
- Zero blank evidence. Every screenshot the harness uploads to an
OIDF upload-placeholder shows a REAL surface. When the driven page
carries none (the pure-API dc_api drives stay on
about:blank), the harness renders one before the capture: the wallet's error screen (renderWalletErrorScreen- the Wallet8 shell carrying the exact rejection caption; the ISO suite's "upload a screenshot of the wallet's error screen" placeholder reads the visible message) or the module's error-page shell. The 1x1 placeholder PNG is rejected as evidence: a blank pixel answers nothing. - Zero silent skips. A skip is a fact about a surface, not an
event: the skip-class harness lines (browser task skipped after the
flow moved on, the Flutter-test-bridge skip on a terminal page, the
plain-visit fallbacks, an unsupported browser command) log ONCE per
module run; a re-fire inside the same run is suppressed and the
suppressed repeats flush as
(xN)counts when the module terminates. A missing harness wire (WALCERT_HOLDER_URLabsent) is a HARD battery violation, never a logged info - the story fails with its cause at the point of loss, not through a cascade of downstream module failures. - Failure notes are failures. Screenshot or upload errors log as failures at their one occurrence (they never repeat per poll).
9a.3 Profile-by-profile implementation state
| Capability | Status | Spec anchor |
|---|---|---|
Discovery (/.well-known/openid-configuration) | implemented | OIDC Discovery §3 + §9a.4 |
Basic OP (code + PKCE S256, ID token with nonce/auth_time/at_hash/c_hash/s_hash) | implemented | OIDC Core §3.1 |
OIDC scope-based claims (email/profile/phone/address) | implemented | OIDC Core §5.4 |
| Config OP (discovery completeness) | implemented | OIDC Discovery + Core |
| Dynamic OP (DCR + management + WebFinger) | implemented | RFC 7591/7592 + Discovery §2.1 |
| RP-Initiated Logout | implemented | OIDC RP-Initiated Logout |
| Back-Channel Logout | implemented | OIDC Back-Channel Logout |
prompt=none/login/consent + max_age re-auth | implemented | OIDC Core §3.1.2.1 |
FAPI 2 Security Profile (PAR + DPoP + JARM + iss + rotation) | implemented | FAPI 2.0 SP + RFC 9126/9449/9207 |
| FAPI 2 Message Signing | implemented | FAPI 2.0 MS + RFC 9421 + RFC 9701 |
FAPI 1 Advanced (PAR + JAR + mTLS + JARM + iss) | implemented | FAPI 1.0 Advanced + JARM s_hash |
| FAPI-CIBA poll mode | implemented | CIBA §5.2 |
| FAPI-CIBA ping mode | implemented | CIBA §5.3 |
| OID4VCI issuer | implemented | OID4VCI §7-§13 |
| OID4VP verifier (DCQL + direct_post.(jwt) + x509_hash + RICAL) | implemented | OID4VP §11 + §5 (§9a.27) |
| Session Management OP (check_session + session_state) | implemented | OIDC Session Management §3.3 (§9a.26) |
Third-Party-Initiated Login OP (initiate_login_uri) | implemented | OAuth-R metadata (§9a.26) |
| Implicit OP + Hybrid OP + Form-Post OP | implemented (profile-gated envs) | OIDC Core §3.2/§3.3 + Form Post Response Mode (§9a.25) |
| eKYC-IDA (claims / verified_claims) | implemented | eKYC-IDA §5.5 + §5 |
JAR request_uri | implemented | RFC 9101 §5 |
| CIBA signed request objects | implemented | CIBA §7.1 |
| OID4VCI issuance nonce | implemented | OID4VCI Final §8.1 |
| Status lists | implemented | Status List (bits/lst, signed status-list+jwt) |
9a.4 Discovery honesty fields
The discovery document carries the required-when-supported / recommended fields (advertised only when actually supported):
- The OIDC + wallet scope families are advertised and served:
scopes_supportedis the OIDC base (openid profile email phone address offline_access) PLUS the OID4VCI credential scopes (the issuer's nativecredential:*configurations) and the OIDF wallet-catalog scopes (eudi.pid.1family,openid.example.cert.1) the wallet plan drives - every scope advertised is mintable end-to-end (the §9a.10 no-skip rule).claims_supportedlists the full claim set:sub,iss,aud,exp,iat,auth_time,nonce,at_hash,c_hash,name,given_name,family_name,email,email_verified,phone_number,phone_number_verified,address,verified_claims. token_endpoint_auth_signing_alg_values_supported(required whenprivate_key_jwtis advertised - RFC 7591 §2)claims_parameter_supported: true+claims_supportedbackchannel_logout_supported: true+backchannel_logout_session_supported- OIDC Session Management:
check_session_iframeon every interactive profile;session_stateon the authorize response (§9a.26) revocation_endpoint_auth_methods_supported,introspection_endpoint_auth_methods_supported- CIBA:
backchannel_authentication_endpoint,backchannel_token_delivery_modes_supported: ["poll","ping"],backchannel_authentication_request_signing_alg_values_supported, plusurn:openid:params:grant-type:cibaingrant_types_supported - OAuth 2.1 posture:
code_challenge_methods_supportedisS256only; PKCE stays mandatory for public clients (RFC 8252 §8.1).
9a.5 Certification runbook (per profile)
The rig collateral lives in sentin8-auth-oidf/conformance/; the
group Makefile exposes make conformance-up / conformance-down / conformance-purge / conformance-seed. make start-conformance starts
the platform in the rig posture (classical TLS, FAPI cipher profile,
RFC 8705 self-signed client-cert surface) WITHOUT mutating ../.env.
- Start the platform in the rig posture (
make start-conformance) andmake conformance-up. make conformance-seed- provisions the certification tenant (orgconformance-local, envcert, test user, suite clients via DCR with the suite callback) through the platform API only. The profile-per-env battery usesmake conformance-seed-all(one env per family, DESIGN §9a.2 item 2). The seed's HAIP issuance pass builds the anchor/leaf chain from the tenant's live ES256 key: when the JWKS carries no ES256 key yet (the pass-1 profile PUT has not made the tenant family resolve), the seed reports the state and exits non-zero - never a silently-empty anchor row.- Create the test plan in the suite: OIDC Basic → Config → Dynamic;
Logout RP-Initiated + Back-Channel; FAPI 2: Security Profile →
Message Signing; FAPI 1: Advanced; CIBA: Poll → Ping; OID4VCI
issuer; OID4VP verifier; IDA - alias
sentin8-local, the cert env's discovery URL. - Run each test; the suite's browser automation completes sign-in via the HTML login page (§9a.8) with the seeded test user.
- All tests must be PASSED / WARNING / REVIEW (no FAILED, no INTERRUPTED, and no SKIPPED - §9a.10).
- Export logs to
.tmp/conformance/results/, thenmake conformance-down.
9a.2d Hosted-suite target (OIDF production instance)
Besides the local Docker rig, the same harness drives the OIDF
production suite (https://www.certification.openid.net) - the
instance certification results must run on for a submission. The two
targets differ in exactly two dimensions; everything else (family
table, specs' plan/module flow, browser automation, seed posture) is
shared code:
-
Suite base is configuration.
fixtures/env.tsderivesSUITE_BASEfromCONFORMANCE_SUITE_URL(default = the rig value, today's behavior bit-for-bit). The hosted target needs no suite stack at all -make conformance-upis skipped; only the platform fleet (make start-conformance,publicrig domain mode) + the seed run. -
API auth is a strategy, not a rewrite. The suite's
/api/**chain is an OAuth2 resource server on the hosted instance: it accepts opaque API bearer tokens (POST /api/token {"permanent": true|false}, 24h TTL for temporary), while devmode rigs accept the bareJSESSIONID.SuiteApicarries the token strategy whenCONFORMANCE_SUITE_TOKENis set (Authorization: Beareron every call) - one code path serves both targets because the rig's devmode filter coexists with the resource-server chain. -
Token bootstrap is a one-time, interactive step. The operator signs in through the Playwright browser once (Google/GitLab - no headless OAuth automation: bot-detection fragility + provider ToS rule that out); a helper spec then drives the suite's Tokens page (
POST /api/tokenunder the signed-in session), captures the one-time-displayed value, and persists it to.tmp/conformance/suite-token.env(chmod 600 - the same secret-reference discipline as the seed's cert-user env). -
Callbacks move with the suite base.
suiteCallback()derivation already builds/test/a/<alias>/callbackfromSUITE_BASE; the seed'sCALLBACKresolves through the same switch (the hosted form = the certification host's callback). The OP under test MUST be publicly reachable from the suite AND from the internet - thepublicrig domain mode (§9a.2 item 2c) with its LE-signed leaf is the prerequisite (the portproxy collateral).The client registrations are target-bound, so switching targets requires a re-seed. A rig-seeded client is registered with
https://localhost.emobix.co.uk:8443/test/a/<alias>/callback; when the hosted suite instead sendshttps://www.certification.openid.net/test/a/<alias>/callback, the OP correctly refuses it and PAR answers400 invalid_request("redirect_uri is not registered for this client"). Every family therefore re-seeds under the target that will drive it:CONFORMANCE_SUITE_TARGET=hosted \bash conformance/conformance-seed-all.sh <family ...>The seed mints fresh client ids whose registered callback matches the target, so the two postures never share a client. A family's environment is the unit of this switch: the same env cannot serve both targets at once.
-
TTL discipline. Temporary tokens expire after 24h - a battery either mints fresh each day (the bootstrap helper re-runs in minutes) or holds a permanent token the operator deletes after the campaign. The suite's token list page shows expiry; the harness treats a 401 from the suite as a loud fail (re-run the bootstrap), never a silent re-login.
-
Result parity. The exported logs land in
.tmp/conformance/results/under the SAME per-family naming, so the campaign rule (§9a.10 no-skip + §9a.11 warning-zero) and the submission packet (runbook step 7) read identical shapes from both targets.
A spec is never run bare. Every family owns an environment
(CONFORMANCE_ENV_SLUG + CONFORMANCE_ALIAS + CONFORMANCE_PROFILE,
§9a.2 profile-per-env), and the battery runner exports that triple
before invoking a spec. Invoking npx playwright test <spec> directly
falls back to the cert env and the standard profile, so the suite
discovers auth.cert.<domain> instead of the family's own host and
then reports a plausible but false gap (for example "Couldn't find
pushed_authorization_request_endpoint" against a host that advertises
it perfectly well). Direct invocation is only meaningful with the
triple exported alongside the target.
An alias admits one live module, so the battery refuses to
overlap. A suite alias is a single-flight resource: starting a second
campaign on an alias whose module is mid-flight makes the suite stop
the first one (Stopping test due to alias conflict - before this test finished, you have started another test using the same alias), and the
victim lands in a terminal INTERRUPTED state that no rerun repairs.
The exposure is worst for the modules that park - the
par-attempt-to-use-expired-request_uri cells Pausing for 600 seconds by design, so every such cell is a ten-minute window in which
an innocuous-looking second run destroys an hour of work.
conformance-run-all.sh therefore guards twice: an exclusive flock
plus a playwright process scan (local competitors, including a stray
direct spec run), and a suite query for a live module on the alias
about to be driven (a campaign started from another host). Both refuse
rather than queue - a campaign silently waiting behind an unknown one
hides the real problem.
That suite query has two properties worth recording, because neither is
visible from the API shape. The plan listing defaults to
Sort.unsorted() (MongoDB natural order, i.e. oldest first), so a
plain GET /api/plan?length=15 returns the fifteen oldest plans and
reports "free" no matter what is running; order=started,desc is
required. And the listing carries no per-module status at all (it is
null for every module, live or not) - only GET /api/plan/<id> does,
so the check resolves the newest plan per alias and then reads it.
Deliberately not supported: driving the Google/GitLab login headlessly (fragile + a ToS minefield - the sign-in is the operator's one interactive step), and a second "prod-mode" local Docker rig (it needs real OIDF OAuth client credentials and reproduces the same bearer work the hosted instance already gives free).
9a.10 No-skip rule (conformance coverage)
A skipped conformance test is a failed conformance test. The suite
SKIPPED a test exactly when the discovery document declined to advertise
a capability it tests. Advertising a capability away is hiding a
coverage hole behind discovery honesty - the platform's rule is the
inverse: implement the capability, advertise it, let the suite test
it. Concretely: every scope in scopes_supported must be mintable
end-to-end, every claims_supported entry must be producible by at
least one scope, and a new suite skip is triaged as a defect with the
same priority as a FAILED result. The rig seed (§9a.5 step 2) therefore
also provisions the data the advertised claims need (the cert user
carries a phone number and a postal address).
9a.6 Sequence - a suite browser interaction (authorize round-trip)
9a.7 Wire-level certification surfaces
JAR request_uri (RFC 9101 §5.2.1). When the authorize request
carries request_uri (and it is NOT a PAR urn), the AS fetches the
request-object JWT from the URI - https scheme only, response body
size-capped, 10s timeout - then runs the same verification path as the
inline request parameter: unverified decode, validate_jar_claims,
exp freshness (±10 min), signature against the client's registered
jwks/jwks_uri. The fetched JWT overlays inline params identically.
Unsigned request objects (alg: none, RFC 9101 §5). The value-form
(inline request parameter) request object MAY be unsigned: the
integrity story is the TLS transport plus the AS's own client
authentication binding. The shared client-JWT verifier short-circuits on
alg: none; discovery advertises none in
request_object_signing_alg_values_supported (§9a.4 honesty:
advertised = served). Fetched-by-URI request objects keep the
https-only + signed rules.
CIBA signed request objects (CIBA §7.1). bc-authorize accepts a
request JWT (or request_uri fetch, same mechanics as above) signed
by the client's registered keys, carrying the CIBA parameters (scope,
client_notification_token, request_mode, login_hint,
binding_message, requested_expiry, exp). Signed wins over form
parameters; verification is the same verifier as JAR's.
CIBA backchannel validation order (CIBA §7.1.1/§7.2). The
backchannel pipeline orders CLIENT AUTHENTICATION BEFORE the signed
request-object validation, and the two failure classes carry their
spec-discrete codes: (a) a caller whose AUTHENTICATION fails (an mTLS
certificate that does not match the presented client_id's
registration, a bad assertion, an unregistered client) answers 401
invalid_client - the AS refuses the CALLER (the suite's
ensure-different-client-id-and-issuer negative: client2 presents
itself with client1's certificate - the auth itself is fraudulent);
(b) an AUTHENTICATED caller whose signed request object carries a
DEFECT (an iss naming another client, missing members, stale
windows) answers 400 invalid_request - the object is a malformed
request, not an authentication failure (the suite's
ensure-request-object-bad-iss negative: client1 authenticates
correctly by assertion, the object claims client2's iss - signed by
client1's key). The iss must equal the AUTHENTICATED client_id once
authentication has resolved it; the object's signature must verify
against the client that authenticated.
OID4VCI issuer (SD-JWT VC profile, OID4VCI §7-§13). Standard endpoint shapes over the existing SD-JWT/KB-JWT/Status-List core, all issuer-hosted on auth:
/.well-known/openid-credential-issuer- metadata:credential_issuer,credential_configurations_supported(one entry per credential type auth mints, each withformat/scope/cryptographic_binding_methods_supported/credential_signing_alg_values_supported/vctandproof_types_supported.jwtincl.key_attestations_required- the field rides INSIDE the jwt proof-type entry per the Final App. D schema),nonce_endpoint(§8.1),batch_credential_issuance(§7.3).POST /oauth/nonce+GET- issuance c_nonce, TTL 300s in Valkey; the FIRST proof of a request GETDELs it (invalid/replayed nonce →400 invalid_nonceerror envelope); batch members carry the same nonce without re-consumption.POST /oauth/credential- issuance request (§7.2). Two configuration forms:credential_configuration_id(a metadata key) or the §7.2.1credential_identifier(references a credentials row previously issued to the caller - unknown ids reject400 unknown_credential_identifier; unknown configuration ids reject400 unknown_credential_configuration). Configuration resolution happens BEFORE the scope check; the access token must then carry the configuration's advertisedscope. Proofs map{"jwt":[...]}with the draft-11 singleproofaccepted (one-of); N proofs mint N credentials (§7.3) sharing ONE status list with random distinct indices (herd privacy). Sender-constrained tokens rideBearer/DPoPschemes: a DPoP-bound token requires its own RFC 9449 proof (htu/ath/cnf.jkt) verified ONCE per request. Resource-side callers presenting a PLATFORM WORKLOAD CERTIFICATE (the-tlsm2m plane - Shield's RoleResolver verifying a forwarded bound token against userinfo) satisfy the sender constraint per RFC 8705 §3: the TLS client certificate IS a sender constraint, so a cert-presenting verification request is admitted for BOTHcnf.x5t#S256-bound andcnf.jkt-bound tokens without the caller holding the mint key (DPoPRS-1).- Proof verification (wallet key binding). The
openid4vci-proof+jwtcarries its key in the JWS headerjwk(or the draft-11 payloadcnf.jwk);aud= issuer,iatfresh (±5 min). When the configuration requires key attestation (App. D), the proof header'skey_attestationJWT (typ key-attestation+jwt) must itself verify: its signing key is read from EXACTLY ONE trusted source - the attestation's inlinedjwkheader member, or the x5c leaf certificate's SubjectPublicKeyInfo (a minimal RFC 5280 §4.1 DER walk extracts the SPKI; no x509 crate dependency). A tampered attestation (the suite's FailOnInvalidKeyAttestationSignature family) rejects with400 invalid_proof; an attestation with neither key form also rejects. - Response: DC+SD-JWT object entries (
{"credentials": [{"format": "dc+sd-jwt", "credential": ...}]}) - the minted JWS carries typdc+sd-jwt, the trailing SD-JWT separator, hour-roundediat/exp(RFC 9901 linkability),cnf.jwk= the proof key, and astatusclaim pointing at the shared status list (signedstatus-list+jwtserved per group). Immediate ortransaction_id+ HTTP 202 for deferred issuance. Issuer metadata is also published as signed metadata (openidvci-issuer-metadata+jwt, Accept-negotiated) and mirrored on the RFC 8414 alias. POST /oauth/deferred_credential- poll atransaction_id→ credential once minted (§10).POST /oauth/notifications- wallet events recorded against the credential record (§12.2).- Credential errors render the Final §7.4 JSON shape
(
invalid_proof/invalid_nonce/unknown_credential_configuration/unknown_credential_identifier/invalid_credential_request) on every failure path.
OID4VP verifier (OID4VP §11). /.well-known/openid-credential-verifier
publishes the verifier metadata (redirect_uris, presentation definitions
supported, client_id schemes). The existing wallet sign-in endpoint
accepts a standard presentation_definition (or by reference:
presentation_definition_uri) alongside the SD-JWT VP handling; the
request object binding (client_id, client_id_uri_scheme) follows
OID4VP §5.
eKYC-IDA verified_claims (eKYC-IDA §5). The claims request
parameter (id_token/userinfo sub-objects, essential flags) is
accepted at authorize and applied at the ID-token/userinfo mint as a
claim SELECTION (never widening - a claim the consented scope did not
grant stays absent). When the request selects verified_claims (or the
user holds an active wallet credential of the matching type), the
ID token/userinfo carries verified_claims built from the credentials
store: verification (trust framework, evidence, time) + claims
(the verified subset). claims_supported lists verified_claims;
discovery advertises claims_parameter_supported: true.
9a.8 Server-rendered HTML login page (automated-client surface)
The hosted UI at /sign-in is the full Flutter auth-ui (canvas SPA) -
the product surface for humans. Canvas apps expose no DOM input
elements, so DOM-driven automation (the OIDF conformance suite's browser
runner, Selenium-class RPs, CI clients) cannot complete the interactive
login. Auth therefore serves a server-rendered HTML login page
(/oauth/login, GET+POST) as a first-class surface for automated
clients - the human flow stays on the Flutter UI.
9a.9 Per-tenant JWT signing algorithm (security-profile plane)
The signing algorithm is a profile decision, not a deployment constant:
signing_alg on the resolved security profile selects ML-DSA-65 (PQ
exclusive/hybrid) or RS256 (classical); the JWKS endpoint publishes
the env-FAMILY filtered key set (ML-DSA tenants see ML-DSA keys,
classical tenants see RSA). Discovery advertises the ACTIVE family's
id_token_signing_alg_values_supported (§9a.4 honesty). ES256 remains
verification-only (wallet proofs, third-party assertions).
9a.9a The family is DERIVED, never a stored literal (AUTHSEED-1)
signing_alg answers one question: which family signs this env's
tokens? Two answers can exist and they must never disagree:
- the mode -
SENTIN8_TLS_PQ_MODE(process-level, physical: it is the TLS transport posture), resolved toMLDSA65when PQ,RS256whenclassical; - the profile row - the platform → org → env override that lets one tenant ride a different family from the fleet.
The stored column therefore carries the OVERRIDE ONLY. The empty string means "no override - use the mode", and every consumer resolves it through one helper. Two defects made that contract untrue:
signing_key_for("")resolved to theMLDSA65arm, so an empty-family sign minted PQ while discovery advertised the derived family. A verifier readingid_token_signing_alg_values_supportedthen held a token whosekid(andalgheader) belonged to the other family.- The seed pinned
'MLDSA65'as a literal on the platform row, so on aclassicalfleet the row contradicted the mode: discovery and the published JWKS advertised ML-DSA while every standard OIDC relying party (authlib, Go, Java - any JOSE stack without ML-DSA) failedid_tokenverification.
The target state:
- the column DEFAULT is
''and the CHECK admits it - a row with no tenant intent stores no tenant intent; - the seed writes
''on the platform row (plus the posture flags FAPI 2.0 requires), so a fleet follows its own mode; jwks::resolve_signing_family(stored)is the SINGLE resolution point: a non-empty stored family wins,''falls back toactive_signing_alg().sign_value_algand every JWKS filter call it, so an empty family can never be read as a PQ request;- an operator or the conformance rig pins
'RS256'explicitly when a suite tenant genuinely needs it - an explicit override is still a first-class, per-env decision.
Consequence for the seeded fleet: classical dev trees publish RSA keys
and advertise RS256 automatically, so a plain OIDC relying party can
verify the id_token without a per-tenant configuration step.
9a.11 Warning-zero posture (suite WARNING classes → root fixes)
The rig's gate is zero WARNING entries, not sanctioned warnings. The
12-WARNING class taught the mechanism: live-DB RLS drift
(auth_oauth_clients_delete_policy missing after an early manual table
rebuild) made RFC 7592 DELETEs 404 on every Dynamic-OP module; the fix
was reconciling the init.sql policy to the provisioned DB - not
tolerating warnings. Every future WARNING is triaged the same way: find
the root defect the suite observed, fix it, re-run.
The §5.5 claims request rides TWO surfaces (the implicit family's
essential-claim modules): (a) the id_token members honor the
claims.id_token SELECTION (email/phone/address ride only when
selected - scope alone is the userinfo grant, OIDC Core §5.5); (b) the
claims.userinfo selection stamps onto the ACCESS TOKEN
(userinfo_claims) at BOTH mint sites (the token endpoint and the
fragment cells' token member) so userinfo serves a selected claim
without the scope family granting it - the login-time selection is the
client's explicit consent signal. The request itself also persists on
the grant row (claims_request) as the standing authorization's
context.
9a.12 mTLS client authentication + sender constraint (FAPI2-SP mtls cell)
tls_client_auth (RFC 8705 §2) binds the client to its certificate's
subject DN; self_signed_tls_client_auth (RFC 8705 §2.3) binds it to
the certificate thumbprint. Sender-constrained tokens carry
cnf.x5t#S256; the mtls token/revoke aliases verify the presented
certificate matches the client record (a re-issued cert = 401).
9a.14 FAPI 1 Advanced final (plain_fapi / private_key_jwt / pushed / JARM)
The full fapi1-advanced-final-test-plan is GREEN: (a) the fapi TLS
cipher profile (SENTIN8_TLS_CIPHER_PROFILE=fapi); (b) PAR JAR-only
push - response_type/client_id/redirect_uri/response_mode resolve from
the request object (invalid_request_object for scope-less objects +
nested request_uri per JAR §6.2 + audience-ARRAY/endpoint-audience
client assertions per RFC 7523/9126); (c) presented-cert cnf binding at
the token mint (RFC 8705 §3); (d) JARM signed with the PROFILE alg +
host-resolved iss + JARM-wrapped deny (access_denied); (e) no-store on
the mtls-aliased token/introspect/revoke.
The response_mode=query mandate (fapi postures). Under
fapi_1_advanced / fapi_2 / fapi_2_message_signing the
authorization response is encoded in the FRAGMENT or via
response_mode=jwt (JARM) ONLY - an explicit response_mode=query
presented inline on /oauth/authorize (or resolved authoritative from a
JAR/PAR-stored object) rejects with the profile's wrapped-error channel
BEFORE any code/session work: error=invalid_request, JARM-wrapped
when the posture mandates JARM, plain url-query error= otherwise
(the suite's RejectAuthCodeInUrlQuery +
CheckAuthorizationResponseWhenResponseModeQuery cells). The standard
family (and every non-FAPI posture) keeps query as its default mode -
this is strictly the FAPI response-surface rule.
The request-object mandate set is PROFILE-DERIVED (the one
mechanism). Every signed-push claim rule resolves from
FapiSecurityFlags (src/fapi.rs required_flags()) - the per-posture
mandate table - NOT from per-module call-site branches:
| Posture | exp | nbf | nonce | alg=none | Sources |
|---|---|---|---|---|---|
standard | optional | optional | scope-gated | allowed | RFC 9101 plain form |
fapi_1_advanced | REQUIRED | REQUIRED | REQUIRED (openid scope) | forbidden | Part2 §5.2.2-1/13/17 + Baseline §5.2.2.2 |
fapi_2 | REQUIRED | REQUIRED | scope-gated | forbidden | PARS+DPoP posture |
fapi_2_message_signing | REQUIRED | REQUIRED | scope-gated | forbidden | freshness binding |
fapi_ciba | (CIBA §7.1 validator owns the object rules - separate path) | forbidden there | §9a.15 | ||
vci/vci_haip | optional | optional | scope-gated | allowed | wallet-initiated unsigned objects |
verify_jar_request consumes &FapiSecurityFlags (no ad-hoc
booleans); nonce is mandatory exactly when the mandate says so AND
the effective scope carries openid (OIDC Core §3.1.2.1). The
discovery/request-claim rules the suite's
without-exp/without-nbf/without-nonce/with-exp-over-60/with-nbf-over-60
negatives all read THIS table - a new claim mandate is a one-line flag
change in required_flags(), never a new call-site branch. The two
ad-hoc require_exp/fapi2_posture booleans are retired.
FAPI refresh-token issuance (OC-27b). Under every SENDER-CONSTRAINED posture (FAPI 1.0 Advanced, FAPI 2.0, FAPI 2.0 Message Signing, CIBA, and the OID4VCI vci_haip attestation profile) the authorization-code grant issues a REFRESH TOKEN unconditionally - these are confidential, key-holding clients and the OIDF refresh-token modules expect one without a scope-preamble offline_access request (the suite's own WARNING text names the policy: "not to FAPI clients"). The vci_haip case is special: the suite builds the credential authorization request from the CREDENTIAL CONFIGURATION's advertised scope, so the request carries only credential:<type> - the OC-27b posture rule (not the scope) must mint the refresh token, and the ATCA §10.3 instance-key binding must survive the refresh (the caller's OAuth-Client-Attestation-PoP key must equal the key that minted the grant - enforced by stamping the attested thumbprint into the refresh claims and comparing on every refresh call). The offline_access-gate stays for the standard family (the RFC 6749 grant policy).
9a.15 FAPI CIBA ID1 (poll + ping, static_client / private_key_jwt)
The full fapi-ciba-id1-test-plan is GREEN: (a) bc-authorize contract -
RFC 6749 JSON error shape, signed request object MANDATORY with full
claim validation (iss==client_id, aud ∈ {issuer, token_endpoint,
bc-authorize}, exp/iat/nbf windows, jti non-empty; alg none/HS/RS256
rejected), exactly-one hint, client_assertion_type exactness; (b) grant
semantics - client-match gate BEFORE status gates, consumed status on
reuse (invalid_grant), expired_token for TTL-outs, 256-bit auth_req_id
entropy; (c) ping delivery - client_notification_token presence
signals ping, ping POST does NOT follow redirects (CIBA §10.2),
backchannel endpoint lookups run under the SYSTEM env RLS context; (d)
holder-of-key - the presented client certificate's thumbprint binds to
the grant at bc-authorize and the poll must present the SAME cert
(invalid_grant otherwise); (e) approval via POST /v1/ciba/approve
(ping-aware, session-bound).
The poll/approve interlock (the HOSTED battery's CIBA discipline).
The suite's poll-family modules classify each poll block: two
expecting pending polls ride the ack's interval (5s default), then a
bounded error-expectation loop (pending|slow_down|invalid_request|503,
~4.7s span, ending bc+10.2s) - a 200 inside that phase is an
INTERRUPT (CheckTokenEndpointHttpStatus400), never a success. The
mint itself is correct at approve time; the harness approve hook must
therefore LAND AFTER the suite's error loop exhausts: it parses the
runner log for the bc-authorize response timestamp and defers the
approving POST /v1/ciba/approve until bc+16s (the interval + the
observed loop span + margin), the same deferral discipline as
OFFERHOOK2-1's waiter-count. The OP-side mint stays read-at-arrival
(the approved flip is authoritative when the poll reads it); no
OP-side race window remains once the hook's phase boundary is honored.
Client-assertion alg mandate covers the CIBA posture. The
fapi_ciba profile deliberately stays OUT of the [FapiProfile] enum
(its own auth-method/aud rules string-match on the profile name), so
the enum-recognized FAPI postures alone did not carry the
client-assertion signing-alg mandate to the CIBA token poll - an
RSA-keyed client could sign its poll assertion with RS256 and the
signature VERIFIED (verify_with_jwk's ("RSA","RS256") arm), leaving
the next gate (status/claims) to answer. The suite's
fapi-ciba-id1-ensure-client-assertion-signature-algorithm-in-token- endpoint-request-is-RS256-fails expects invalid_client (FAPI Part2
§8.6: PS256/ES256 only - RS256 'shall not use'). The reject now rides
the fapi-ciba-membership predicate (fapi.rs::fapi_ciba_posture) the
same way every posture-scoped gate does: an RS256-signed client
assertion rejects 401 invalid_client under fapi_ciba exactly as it
does under the enum-recognized FAPI postures. The plan's seeded client
key is RSA-PS256 (the suite's skip gate reads keys[0].alg of the plan
config's client.jwks and SKIPS both RS256 negatives for an EC client -
the §9a.10 no-skip rule forbids shipping that skip), and the request-
object RS256 negative (§7.1 alg policy) runs against the same key.
Grant URN vocabulary (profile allow-list parity). The CIBA poll
grant is served at the token endpoint under the OpenID CIBA §4 URN
(urn:openid:params:grant-type:ciba) - the URN discovery advertises
(§9a.4 honesty) and the delegation pollers (Sentin8:BFF
delegate/poll + its background SSE poller) speak. The FAPI profile
grant allow-list (fapi.rs::allowed_grant_types) admits that URN
ALONGSIDE its IETF alias (urn:ietf:params:oauth:grant-type:ciba) -
the profile constrains authentication strength and token binding, not
the URN spelling, and a tenant under a FAPI posture running the
certified CIBA flow must reach handle_ciba_token through either form
(previous drift: only the IETF alias was listed, so every
OpenID-URN poll under fapi_2 answered 400 unauthorized_client
before the grant handler ran).
9a.16 FAPI 2.0 Message Signing (final plan, dpop + mtls cells)
The full fapi2-message-signing plan is GREEN (2026-10-25, run14:
111 module-instances across both cells = 97 PASSED / 10 REVIEW
by-design screenshot confirms / 3 SKIP-SANCTIONED RS256-negatives
(ES256-clients) / 1 FAIL-SANCTIONED multi-DPoP JVM collapse;
zero warnings): (a) the plan's "request
signing" (fapi_request_method=signed_non_repudiation) is the SIGNED
REQUEST OBJECT (JAR), NOT RFC 9421 HTTP signatures -
fapi_2_message_signing posture keeps require_http_signatures: false;
(b) strict-aud profile-scoped - FAPI 2.0 postures require
client-assertion aud == issuer EXACTLY (string; single-member issuer
array tolerated; endpoint-forms + 2-member array rejected) while FAPI 1
Advanced keeps the permissive RFC 7523/9126 endpoint/ARRAY set; (c) PAR
dpop_jkt pre-binding (RFC 9449 §10.1) - JarClaims.dpop_jkt captured
from the request object before the DPoP gate (JAR value wins over the
form), persisted in the PAR record, enforced at token (thumbprint
mismatch → invalid_dpop_proof); (d) PS256 (RSASSA-PSS, RFC 7518 §3.5)
verified through the rsa crate's PSS primitive in BOTH the raw-JWS and
the JWT arms (one PSS implementation; salt = SHA-256 digest size per
RFC 7518 §3.5; wire-proven: a salt=32 PS256 client assertion with
registered jwks pushes PAR 201, and a 222-byte max-salt assertion - the
non-RFC form - is rejected, as are unregistered-key assertions per
RFC 7523 key registration) - closing the "advertised-but-unverifiable"
honesty gap; (e) the multi-DPoP
negative is suite JVM-collapse-skip (two proofs become one wire header;
the wire 2-line case is proven at the proxy level); (f) the request
object's freshness claims are MANDATORY under the message-signing
posture - a signed (alg != none) object without exp or nbf
rejects invalid_request_object (iat rides as produced by every
signer; the suite's production objects ship exp + nbf) (the non-repudiation freshness
binding: a signature whose validity window an attacker cannot shorten
is meaningless under FAPI2-MS; the plain RFC 9101 form keeps exp
RECOMMENDED - the alg-none unsigned object keeps its TLS-integrity
story and the claims stay optional); the freshness windows mirror the
exp slack - a nbf/iat more than 60s in the future, or a stale
nbf more than 10 minutes in the past, rejects; (g) the PAR push
under the MS posture MUST carry a signed request object - an
unsigned/no-object push rejects 400 invalid_request (.3's
error code; the by-value/authorize form uses invalid_request_object);
(h) the error-redirect CHANNEL follows the module family's owning
suite check class, not the object's response_mode claim: the
missing-PAR reject = the JARM-wrapped response=<JWT>
(ExtractJARMFromURLQuery's flow) while the response-type reject = the
plain url-query error= (DetectWhetherErrorResponseIsInQueryOrFragment
reads error from the callback query directly; a JARM there logs
'unexpected parameters'); (i) the client-assertion ALG MANDATE
(FAPI 2.0 BSA/BE): client assertions and JAR request objects accept
ES256/PS256 ONLY - an RS256-signed assertion rejects 401 invalid_client under the FAPI2 postures ('fapi_2' and
'fapi_2_message_signing'), and discovery advertises the env-resolved
token_endpoint_auth_signing_alg_values_supported as [PS256, ES256]
there (RS256 drops with it; FAPI 1 Advanced keeps the full
[active, RS256, PS256, ES256] set where RS256 remains valid). The
suite's RS256-negatives ("requires RSA keys... If your server does
not support PS256 then this will not prevent you certifying") run
against a multi-key client (the seed provisions an ES256 and an
RSA/PS256 key in the same jwks doc - the suite signs the negative
with the RSA key while the positives keep ES256) and resolve with the
AS's reject.
9a.17 OIDC Core Config + Dynamic OP certification
Both plans are GREEN with zero warnings: (a) discovery completeness -
registration_endpoint, userinfo_signing_alg_values_supported, subject
types, grant types (+implicit non-FAPI), id_token_signing algs (+none
non-FAPI), mtls_endpoint_aliases omission; (b) RFC 7591 client metadata
persistence - id_token/userinfo_signed_response_alg + subject_type +
sector_identifier_uri stored at DCR, RFC 7592 update COALESCE merge,
honored at code exchange; (c) DCR RFC 6749/7591 JSON error shapes
(invalid_redirect_uri for fragments; invalid_client_metadata for bad
sector URIs); (d) ext-jwks rotation retry - failed client-assertion
verification over a jwks_uri client invalidates the Valkey cache and
refetches ONCE (client-key rotation no longer trips the negative TTL
cache); (e) warning-zero: the 12-WARNING class was an OP defect
(live-DB RLS drift on auth_oauth_clients_delete_policy), fixed by
reconciling the init.sql policy.
The OID4VCI Nonce Response shape (OIDF-HOSTED-2b). The FINAL
OID4VCI-1.0 spec (§7.2, the suite's requirements: [OID4VCI-1FINAL-7.2])
defines the Nonce Response with c_nonce ONLY - c_nonce_expires_in
was dropped from the final (the draft-era advisory TTL member). The
suite's VCICheckCredentialNonceResponseForUnknownFields warns on
every extra top-level member, so the OP returns {"c_nonce": ...}
alone; the freshness discipline still holds server-side (the Valkey
record keeps its 300s TTL; uncacheable no-store/no-cache headers
unchanged). The prior 15-warning class across the six issuer modules
(Nonce endpoint response contains unknown fields) reduces to zero.
9a.18 OID4VCI Issuer certification
The full oid4vci-1_0-issuer-test-plan (14 modules: metadata+signed,
four happy-flow cells, batch-issuance, five fail-negatives including
key-attestation and both unknown-config/identifier forms) is GREEN (14
PASSED / zero warnings): the §9a.7 OID4VCI surfaces ARE the implemented
state - nonce endpoint + first-proof GETDEL consumption, batch N→N with
one shared status list (random distinct indices), key-attestation
verification against exactly one trusted key (inline jwk OR x5c-leaf
SPKI), configuration resolution BEFORE scope check, §7.2.1 identifier
form with RLS-scoped existence validation, and Final §7.4 error JSON on
every failure path. Rig wiring: the plan config carries BOTH nested
vci.key_attestation_jwks (the suite's dot-path lookup) and top-level
vci_key_attestation_jwks (the PRIVATE signer jwks); the attester
keypair carries an x5c chain (the suite requires x5c on the attestation
signing key). The status-list token header carries BOTH jwk AND
x5c (the hybrid embedded-key + chain form): the suite's
VerifyStatusListTokenSignatureUsingEmbeddedJwk verifies from the
EMBEDDED jwk only (it reads neither x5c nor JWKS-by-kid), while
the HAIP plan's ValidateStatusListTokenX5cCertificateChain requires
the x5c chain - one header carries both members so both verifiers
pass on the same token. Note: the suite's "Try Client1's DPoP key with Client2's
access token" step is a NEGATIVE probe - the RFC 9449-correct 401
(cnf.jkt mismatch) is the expected verdict.
9a.19 OID4VCI HAIP certification - attestation-based client authentication
Spec: OAuth 2.0 Attestation-Based Client Authentication (draft-ietf-
oauth-attestation-based-client-auth, the suite's OAuth2-ATCA07
requirements). The oid4vci-1_0-issuer-haip plan runs the issuer
surface with client_auth_type=client_attestation: the client
authenticates with an ATTESTATION CHAIN, not a shared secret. This
extends the token-endpoint authenticator (not the credential surface -
the §9a.7 proof/keyAttestation paths are unchanged).
Wire contract (headers, not form parameters):
OAuth-Client-Attestation: <attestation JWT>-typ oauth-client-attestation+jwt; the JWS header carries anx5cchain (the attester's certificate chain); claims:iss= the attester's identifier (the trust-policy issuer),sub= the client_id being authenticated,iat/nbf/expfreshness,cnf.jwk= the client's PROOF key (the key the client signs with).OAuth-Client-Attestation-PoP: <pop JWT>-typ oauth-client-attestation-pop+jwt; claims:iss= the client's instance key identifier,aud= the issuer (resolve_issuer, host-resolved),iat/nbf/exp,jti(single-use), andchallengewhen the server advertises anattestation_challenge_endpoint(auth does NOT advertise one - the challenge check self-skips).
Trust model. The attestation's x5c chain must chain to the env's
configured trust anchor: security_profiles.kv carries
client_attestation_trust_anchor_pem (PEM of the attester CA/leaf) and
client_attestation_issuer (the expected iss). Both are resolved
through the SAME per-tenant profile plane as every other posture knob
(§9a.9), gated behind profile='vci_haip' + an explicit
allow_client_attestation flag. The attestation's signature verifies
against the x5c LEAF key (the draft's self-contained verify path); the
POP's signature verifies against the ATTESTED key (cnf.jwk) - so the
PoP proves possession of exactly the key the attestation binds.
Discovery honesty (draft §5 metadata): when the resolved profile
enables attestation auth, discovery gains attest_jwt_client_auth in
token_endpoint_auth_methods_supported (plus the revocation/
introspection method lists that share the authenticator), and
client_attestation_signing_alg_values_supported: ["ES256"] +
client_attestation_pop_signing_alg_values_supported: ["ES256"].
Profile plumbing: security_profiles gains profile='vci_haip'
(the same flag-shape family as vci) with allow_client_attestation,
client_attestation_trust_anchor_pem (kv text), and
client_attestation_issuer (kv text). The authenticator accepts
attestation headers when the RESOLVED ENV PROFILE enables them
(regardless of the client's registered method string, which carries
attest_jwt_client_auth for the suite's registration checks); the FAPI
method allow-list (fapi.rs) admits attest_jwt_client_auth under the
vci profiles. PoP jti replay rides the established single-use cache
(auth:capop:{jti}, SETNX with the exp-bounded TTL) - the draft's
§6.2 replay rule, keyed globally-but-exp-bounded per the draft (the pop
iss value is client-instance-scoped by construction).
Error shapes: a failed attestation/PoP answers 401 invalid_client
(uniform, §8) - the suite's negative cells
(FailOnInvalidClientAttestationPopSignature,
FailOnMismatchedClientAttestationPopKey, FailOnInvalidClientAttestation
Signature, FailOnClientAttestationNoSub, FailOnClientAttestationExpInPast)
read it as the OAuth error shape.
Plan census (suite 5.3.3, VCIIssuerTestPlanHaip): 63 module-variants
= 21 classes × variant slices - 57 plain
(vci_credential_encryption=plain) + 3 encrypted
(=encrypted) + 3 variant-less runner entries. THREE modules appear
TWICE with different vci_credential_encryption values
(oid4vci-1_0-issuer-happy-flow,
oid4vci-1_0-issuer-fail-unknown-credential-configuration, and the
metadata pair) - a runner keyed by module NAME alone would run one
slice twice and leave the sibling PENDING at the plan gate (the rig's
runner create must key the variant map by name AND variant and run
every plan entry). The rig's runner create carries each module's
resolved values
(GET /api/plan/<id>.modules[].variant → POST /api/runner?variant=<json>
with an EMPTY body - a JSON body answers 400).
HAIP refresh + the wire path to the credential endpoint (the two
live-found gaps, both closed). The plan ships the FAPI2-SP
refresh-token module under fapi_profile=vci_haip: the suite's
VCIDetermineCredentialConfigurationTransferMethod copies the
credential configuration's scope into the authorization request, so
the grant carries ONLY credential:VerifiedPersonCredential - the
§9a.14 OC-27b posture rule (not the scope gate) mints the refresh
token, and the ATCA §10.3 binding holds across the refresh (the
refresh claims stamp the attested instance-key thumbprint at mint;
a refresh whose attestation PoP key differs answers
invalid_grant). On the transport plane the suite's two-line DPoP
negative (Try with more than one DPoP in the header) reaches the
handler ONLY when every header-preserving hop keeps the duplicate -
the sentin8-tls context middleware APPENDS (never collapses)
repeated header lines, so extract_dpop_header's exactly-one-proof
rule answers the RFC 9449 §7.1 400/401 reject on the credential
surface too (the 200-on-duplicate was the live-found gap: the
middleware rebuilt the header map with insert(), silently blessing
the forged shape).
Encrypted-slice capability (OID4VCI §12.2.4 credential
encryption - implemented). The issuer metadata publishes
credential_response_encryption (alg_values_supported: ["ECDH-ES"], enc_values_supported: ["A256GCM"],
encryption_required: false) and credential_request_encryption
(jwks + enc_values_supported + encryption_required - no
alg_values_supported in the request block, the errata schema
shape). The credential request accepts an encrypted body (compact
JWE, ECDH-ES + A256GCM, 5-part OR the 4-part variant with the GCM
tag merged into the ciphertext segment) and a JSON body carrying
credential_response_encryption {enc, jwk} where the key-agreement
alg rides the JWK (jwk.alg) rather than the top level. The
response returns the credentials object as a compact JWE
(Content-Type: application/jwt) under the wallet's key. Key
derivation is RFC 7518 §4.6.1 ConcatKDF - the single-step hash
form (SHA-256(counter ‖ Z ‖ OtherInfo)), NOT HKDF - with the
enc value as AlgorithmID for direct key agreement. Unsupported
alg/enc answers 400 invalid_encryption_parameters (the suite's
FailOnUnsupportedEncryptionAlgorithm +
VCIValidateCredentialErrorResponse), validated BEFORE any mint.
HAIP x5c chain (certified). The issuer's ES256 keystore key
carries a self-issued X.509 certificate (minted at keystore load,
published as the JWK x5c member); the credential SD-JWT and the
status-list token embed it (no jwk member in HAIP certificate
mode - sign_value_typed_x5c). When the environment profile seeds
issuance_leaf_pem + issuance_chain_pem (the deployment
issuance-CA's leaf signed on the issuer's own ES256 key), those
ride the x5c chain instead and the relying-party trust anchor is
the CA - the OIDF rig mints that CA itself and pins it as
credential.trust_anchor_pem / status_list_trust_anchor_pem.
Every encrypted-slice module of the HAIP family PASSES (the
family is zero-warning green); the non-oid4vci modules the HAIP
plan template ships (FAPI2 remnants) are out of scope for this
cell - the fapi2-security spec owns them.
9a.20 OID4VCI wallet-plan issuer surface - credential-offer landing
The OIDF wallet plan (oid4vci-1_0-wallet-test-plan) exercises the WALLET
role against our issuer: the suite builds the OID4VCI credential offer
from its own default catalog and opens vci.credential_offer_endpoint
(BY_VALUE: the offer JSON rides the credential_offer query param) in
the browser. The issuer-side surface:
GET /oauth/credential-offer?credential_offer=<urlencoded offer>&<fixed client params>- the offering landing handler. It parses the offer (credential_issuer, credential_configuration_ids, grants.authorization _code.issuer_state), resolves the bound client + redirect_uri + scope from the pass-through query parameters the harness embeds invci.credential_offer_endpoint(UriComponentsBuilder preserves them), and 302-redirects into the standard authorize flow withstate=<issuer_state>+issuer_state=<issuer_state>(the suite'sVCIVerifyIssuerStateInAuthorizationRequestrequires the request to echo its generated state).- The rest of the flow is the proven stack: the harness browser completes
the sign-in bridge, the suite callback receives
code+ matching state, the wallet authenticates (private_key_jwt), and the credential request family runs over the §9a.19 surfaces (catalog configs, dpop, attested proofs, encryption).
The issuer advertises the OIDF wallet catalog (eu.europa.ec.eudi.pid.1,
nobinding, attestation/jwt.keyattest variants) in
credential_configurations_supported - scope per configuration; the
minted vct is the configuration's designator (urn:eudi:pid:1).
The harness supplies the wallet config surface: server.jwks (the
issuer's live JWKS for LoadServerJWKs), credential.signing_jwk (the
rig-minted issuance leaf on the issuer's ES256 key - HAIP 6.1.1
no-self-signed), the published wallet client.jwks (public-only - the
plan's EnsureJwksHasNoPrivateOrSymmetricKeyMaterial), and the
client_attestation block (issuer + trust_anchor +
attester_jwks private keys mirroring the registration).
HAIP-X5C-1 (the leaf-matched signer). The credential and
status-list JWS x5c mints sign with the key the chain's LEAF
CERTIFICATE binds - resolved by matching the leaf's uncompressed P-256
public point against the PERSISTED key set, never with the
currently-ACTIVE key. The environment's issuance leaf is minted (by
the rig's seed) for ONE live JWKS key; an active-key rotation between
the seed and an issuance made the credential sign with the new key
while x5c[0] carried the old key's certificate - the suite's
ValidateSdJwtCredentialX5cCertificateChain verifies the JWS against
the embedded cert and failed. The persisted-key table keeps every
rotated key (JWKS overlap), so the leaf-matched signer always
resolves; a leaf binding no persisted key rejects the mint.
The issuer-plan offer wait is a HARNESS hook (battery-9,
auth DESIGN 9a.20). The ISSUER plan (oid4vci-1_0-issuer-haip-test-plan,
the vci_authorization_code_flow_variant=issuer_initiated cells)
reverses the wallet plan's roles: the SUITE plays the issuer and our
side plays the wallet. The suite's
AbstractVCIIssuerTestModule.waitForCredentialOffer sets the runner
WAITING and exposes credential_offer_endpoint = the SUITE's own
{base_url}/credential_offer (the suite-host URL
https://localhost.emobix.co.uk:8443/test/a/{alias}/credential_offer);
the module resumes (handleCredentialOffer) only when a request
carrying credential_offer (BY_VALUE: the offer JSON inline) or
credential_offer_uri (BY_REFERENCE: an https URL the suite fetches
server-side) arrives there - the two params are mutually exclusive
(OID4VCI-1FINAL-4.1). The rig runner therefore gains a THIRD operator
hook (the CIBA approval and the rotate-keys resume being the first
two): while a module is WAITING and its log carries the parking entry
(Waiting for call to credential offer endpoint - the gate prevents
the same-second misfire against modules that never park), read the
exposed credential_offer_endpoint from the runner record and GET it
once per PARKED WAIT. Without the hook the module parks WAITING
until the drive window times out with auth never receiving a request
(the battery-9 vci-haip single-module failure, reproduced on a
targeted retry: both wallet_initiated cells pass, the issuer_initiated
cells starve).
One hook fire PER parked wait (battery-11, OFFERHOOK2-1). The
wait marker is re-emitted by the suite for every parking episode: the
multiple-clients module runs the wallet role TWICE in one module
(OID4VCI-1FINAL AbstractVCIIssuerMultipleClient: "The first client
has obtained its credential. Pre-authorized codes are single-use, so
a NEW Credential Offer for the second client is needed now" - the
second wait parks the same WAITING state with the SAME
credential_offer_endpoint). A once-per-runner submission would
starve the second wait (the module dies at driveMs with client2's
authorize never issued). The hook therefore counts the marker's
occurrences in the module log and fires ONE offer submission per
counted wait: on the first observation it submits and records the
count; whenever the count RISES (the suite re-parked for the second
client), the next WAITING observation submits again. The submission
form per cell is unchanged (BY_VALUE inline JSON / BY_REFERENCE
document URL); only the re-arm policy changed. A fired submission
that the suite consumed shows up as the client's authorize flow in
the module log (the browser block drives it) - the count comparison
is the only new state.
The BY_REFERENCE offer document service (the hook's two-form
split). The suite's VCIValidateCredentialOfferRequestParams
dispatches on the delivered parameter: credential_offer (inline
JSON) feeds VCIValidateCredentialOffer directly;
credential_offer_uri enters VCIFetchCredentialOfferFromCredential OfferUri - a SERVER-SIDE HTTP GET of the URI whose response body must
BE the offer JSON (the suite parses body into
credential_offer_raw and validates it). The BY-VALUE landing
(GET /oauth/credential-offer, the browser redirect page above)
cannot serve that fetch: it demands the credential_offer query
param and 302s into authorize - fetched by the suite it answers
400 credential_offer is required and the module dies
(Unable to fetch credential offer from ...). The issuer therefore
gains the BY_REFERENCE half of the offer contract
(OID4VCI-1FINAL-4.1: the offer is a standalone JSON resource
deliverable inline or by URI):
GET /oauth/credential-offer/document?client_id=...&redirect_uri=...- the offer DOCUMENT endpoint (the harness-bound pass-through
params, the same contract as the landing). It mints a fresh
issuer_state, resolves the credential issuer from the request host, and returns200 application/jsonwith the Credential Offer object:credential_issuer,credential_configuration_ids(the plan's configuration -VerifiedPersonCredential), andgrants.authorization_code.issuer_state. No redirect, no session, no persistence - the state is consumed at the authorize step it redirects into, exactly like the landing's flow.
- the offer DOCUMENT endpoint (the harness-bound pass-through
params, the same contract as the landing). It mints a fresh
The hook delivers the matching form per cell: the BY_VALUE cells
submit credential_offer = the document endpoint's JSON inline;
the BY_REFERENCE cells submit credential_offer_uri = the document
endpoint's URL. Both forms validate identically (the suite's
VCIValidateCredentialOffer runs on the resolved JSON either way),
and the authorize journey after the resume is the standard browser
block.
9a.19x The VCI HAIP mdoc format cells (OIDF-VCIMDOC-1)
The suite's VCI plans carry a credential-format variant axis
(VCI1FinalCredentialFormat: SD_JWT_VC=sd_jwt_vc + MDOC=mdoc) -
the certification catalog lists BOTH formats in the HAIP wallet +
issuer plan variant matrices. The battery originally pinned
credential_format: sd_jwt_vc on every VCI plan create (the
sd_jwt_vc matrix ran green first); the mdoc cells ride the SAME
battery families as additional variants - no new env, no new plan
family, no new platform surface (the protocol work predates the seats:
the mso_mdoc metadata entries + mint_mdoc_credential are
OIDF-ISO-1's §9a.29 closure, and the wallet SDK's MintedCredential
already handles the base64url IssuerSigned CBOR).
Issuer-side cells (oid4vci-1_0-issuer-haip-test-plan). The
format is a USER-SELECTED variant axis on the plan create (the HAIP
plan pins client_attestation/vci_haip/dpop/unsigned; the create
rejects only pinned-axis overrides). Each mdoc flow cell runs the
same module family as its sd_jwt_vc sibling with the format swapped:
the issuer metadata module validates the mso_mdoc configurations
(fmt mso_mdoc, doctype, integer COSE credential_signing_alg_values_supported,
claims element sets - the §9a.29 metadata shape the platform
already advertises for eu.europa.ec.eudi.pid.mdoc.1 +
org.iso.18013.5.1.mDL), and the credential modules drive
POST /oauth/credential into mint_mdoc_credential (the MSO binds
the PROOF's key - the attested-key/jwt-proof path the HAIP cells
already exercise for sd_jwt_vc, now bound into the deviceSigned MSO).
The status-list plane is format-generic (the §6.x status surface
serves both).
Wallet-side cells (oid4vci-1_0-wallet-haip-test-plan, campaign
mode). The suite's mock issuer MINTS the mdoc credential
(CreateMdocCredentialForVCI under the suite's OWN IACA root -
/mdoc-iaca-root.pem): the plan config must carry the IACA anchor so
the holder's vault verification trust-checks pass (the same
cellConfig('mdoc') anchor wiring the VP battery's wallet spec
resolves live from ${SUITE_BASE}/mdoc-iaca-root.pem). The holder
consumes the suite-hosted offer (the standard intake hook), receives
the IssuerSigned mdoc from the mock issuer's credential endpoint, and
stores the holding (format mso_mdoc + doctype
eu.europa.ec.eudi.pid.1). The attestation-identity registration,
the DPoP journey, and the offer-intake hooks are format-agnostic -
they arm identically for the mdoc cells.
Registration scope. The seed's vci-haip clients (cert-haip) and
the wallet campaign client (cert-wallet) carry the mdoc configuration
scope (eudi.pid.mdoc.1) in their registered scope set alongside the
sd_jwt_vc scopes - the authorization-details intake resolves the
credential configuration from the offer either way, but the suite's
metadata/happy-flow modules read the configuration set the issuer
advertises; a scope-missing registration would fail only the
scope-resolved issuance variants.
Battery contract. The issuer spec drives 3 flow cells x 2 formats = 6 issuer-haip plans (the log/result files gain the format segment); the wallet spec's campaign block drives the HAIP cells per format (sd_jwt_vc's 3 cells + mdoc's 3). Timeout budgets scale with the added plans (the same per-module 600s / expired-uri 1080s margins apply; the family timeout raised from 60m/90m covers the doubled plan count).
The certificate-profile pass (the mdoc validator's ISO 18013-5
Table B certificate expectations). The suite's
ValidateMdocCredential issuance sequence gates the mdoc happy
flow on a certificate-profile family the sd_jwt_vc cells never
reach. Its checks decompose per certificate in the involved
chains:
- The DS certificate (the x5c[0] leaf on the mdoc IssuerSigned -
the rig-minted issuance leaf for HAIP envs, the self-issued
keystore cert for plain envs). Required extensions: the critical
EKU naming the document-signing key purpose (ISO 18013-5
1.0.18013.5.1.2), the CRL Distribution Points extension with at least one fetchable URI, the Issuer Alternative Name with an rfc822Name or URI, the Authority Key Identifier, and the subject attributesC(PrintableString, ISO 3166 alpha-2) +CN. The validity period is capped at 457 days, the keyUsage is digitalSignature-only (no CA bit), and the subjectCMUST equal the credential'sissuing_countrydata element. The CRLDP target must serve an ISO 18013-5 CRL:application/pkix-crl, a v2 CRL (theversion is X but shall be v2check) with the Authority Key Identifier and CRL Number extensions, a nextUpdate at most 90 days after thisUpdate, and no empty revokedCertificates member. - The trust anchor (the IACA root the plan pins). Table B.1
requires the subject
C, a critical keyUsage of ONLY keyCertSign + cRLSign (bit 0 - digitalSignature - is a violation), a BasicConstraints pathLenConstraint of 0, an Issuer Alternative Name, and a 7305-day validity cap. - The status-list CWT signer certificate (the x5chain leaf on the CWT the revocation endpoint answers with). Table B.9 caps the validity at 1187 days, requires the Authority Key Identifier, digitalSignature-only keyUsage, and forbids a critical EKU.
- The MSO data elements (the EUDI PID Rulebook namespace). The
suite's
PidDataElementscatalog defines the allowed member set foreu.europa.ec.eudi.pid.1; elements outside it (an issuer's extension) must ride an issuer-defined namespace. The suite's mandatory set is family_name, given_name, birth_date, place_of_birth, nationality, issuing_authority, issuing_country.
The platform mint surfaces each fix once, at the mint:
- The auth status-list signer + revocation CWT x5c leaves gain the B.9 shape (digitalSignature-only keyUsage, non-critical EKU, AKI already present, validity 800 days - under both the 1187-day B.9 cap and the 90-day CRL cadence the endpoint promises).
- The HAIP issuance leaf and its CA mint (the rig seed)
reproduce the ISO 18013-5 profile: the CA carries ONLY
keyCertSign + cRLSign, pathLen 0, the
C+ IAN members, and a 3650-day validity (inside the 7305-day anchor cap); the DS leaf carries the critical mdoc EKU, the CRLDP naming the rig's CRL publisher URL, the IAN, AKI,C/CNsubject, digitalSignature keyUsage, and a 400-day validity (inside the 457-day cap, the same window the suite's own reference mint uses) with the subjectCmatching the credentials'issuing_countryvalue. - The plain-posture fallback (the keystore self-cert) carries the
same DS shape so a non-HAIP env's mdoc mint still passes
(CRLDP + IAN added at the
pem_str_to_self_cert_b64mint). - The credential mints drop
age_over_18from the PID element set (it sits outside the suite's Rulebook catalog; the mandatory set stays filled by the existing elements). - The CRL publisher answers the DS certificate's CRLDP with an ISO
18013-5 CRL. The suite's
ValidateMdocDsCertificateCrldemands the CRL's issuer DN be the SAME EXACT BINARY VALUE as the DS certificate's issuer, the CRL's AKI equal the DS certificate's AKI, and the CRL signature verify against the IACA's key - the CRL is per-issuing-CA. Both postures therefore serve the CRL from the issuer itself, through the OP's own plane (the suite container resolves + JVM-trusts theauth.*hosts):- The rig posture (env-profile issuance CA). The seed mints the
rig CA's v2 CRL at seed time (7-day nextUpdate - the profile is
refreshed every campaign) and stores it, standard-base64, in the
env security profile's new
issuance_crl_der_b64member. The OP serves those bytes verbatim atGET /oauth/credentials/issuance-crl(application/pkix-crl); the profile leaf's CRLDP names that URL (https://{auth host}/oauth/credentials/issuance-crl). - The plain posture (the self-issued keystore certificate). The
certificate's issuer is the leaf itself, so auth mints its CRL
dynamically on request:
GET /v1/crl/{kid}builds the v2 CRL per request (issuer DN = the kid's certificate subject, signed by the kid's persisted EC key, AKI + CRL Number + 7-day nextUpdate) - the self-cert's CRLDP names that URL. The ACME CA plane's/crlendpoint stays for the TLS chain's revocation visibility (the tls leaves' CRLDP); it is NOT the mdoc DS publisher (the mdoc DS issuers are never the acme intermediate).
- The rig posture (env-profile issuance CA). The seed mints the
rig CA's v2 CRL at seed time (7-day nextUpdate - the profile is
refreshed every campaign) and stores it, standard-base64, in the
env security profile's new
The chain-shape invariants (the PKIX discovery). The suite's x5c
chain conditions (X509CertificateUtil.validateX5cCertificateChain)
build the PKIX path as member[i] signed by member[i+1] - every chain
member beyond the leaf MUST be a true issuer (a CA). The seed's
sibling leaves (multiple certificates bound to the SAME persisted key
-
the DS leaf and the B.9 status leaf) can never appear together in one x5c chain: member[1] would be read as the ISSUER of member[0] and PKIX fails with
INVALID_KEY_USAGE(the sibling is not a CA). The mint-side invariants this produces: -
The CREDENTIAL x5c is
[ds_leaf]- any chain member whose EC point binds a persisted key beyond the leaf is dropped (the chain collapses to the leaf; PKIX anchors directly on the profile's CA). -
The STATUS-LIST CWT x5c is the single
[status_leaf]member (the B.9-shape leaf, bound to the same key, NO extended key usage) - thepem_profile_to_x5cprofile chain carries it after the DS leaf and the CWT mint swaps it in; a chain member must never ride two roles (the DS profile's critical EKU and the B.9 signer's non-critical EKU cannot coexist on one certificate). -
The MSO validity window (360 days) sits strictly inside the DS certificate's notAfter (400 days) - the suite's
ValidateMdocMsoValidUntilWithinDsCertificateValidityreads the window against the chain leaf's certificate.
Verified end to end on the local rig (2026-11-22): both canary
families green (vci-haip-mdoc 18 runs PASSED, vci-wallet-mdoc 139
runs PASSED), zero failures, zero warnings.
9a.21 DPoP sender-constraint journey - PAR lifecycle & the jkt chain
The HAIP plan's fapi2-security-profile modules exercise the full RFC 9449 §10.1 sender-constraint journey: the key that signed the PAR request's DPoP proof must be the key that signs the token endpoint's proof. The journey spans THREE server surfaces (PAR push, browser authorize/consent journey, token exchange) - the binding must survive the browser hops where neither the client nor the SPA re-derives it.
Authorization-journey lifecycle (PAR is multi-read, one-shot on OUTCOME):
POST /oauth/parstores the verified param record atauth:par:{key}(600s TTL, RFC 9126 §4 AS-decided expiry) with the request's SENDER-CONSTRAINT resolved in priority order: the pre-bounddpop_jkt(form field or the JAR object's member) MUST equal the live proof's thumbprint when both exist (mismatch = 400 invalid_dpop_proof); when no value is pre-bound, the PAR's own verified DPoP proof thumbprint becomes the binding.resolve_par_requestis a MULTI-READ: the SPA's login visit AND the consent re-entry both hit/oauth/authorize?request_uri=..., and each resolution overlays the record's params (incl.dpop_jktand thepar_keycopy) onto the request. RFC 9126 single-USE is honored on the AUTHORIZATION OUTCOME, not on the first read: after ANY code is issued for the interaction,mark_par_usedsetsauth:par-used:{key}(600s) and further resolutions return none - the reuse-after-completion negatives (FAPI2 rejected-request-uri class) fail with the standard invalid_request error path, while the two-visit flow keeps working.- The authorize handler copies the resolved
dpop_jktonto the interaction params and ALSO stashes it underauth:authz-jkt:{state}(600s) - the interaction memo.
The binding's ride through the browser journey (the invariant the
memo exists for): the code record is written by the CONTINUE
endpoints (/oauth/authorize/continue, consent continue), which
receive their dpop_jkt in priority order (1) the SPA's relayed
parameter (may be absent or EMPTY - the SPA echoes only what its UI
URL carried and the consent hop may strip it), (2) the authorize
params carried on the continue request, (3) the interaction memo
auth:authz-jkt:{state}. Empty strings NEVER bind - every carry-in
is trimmed, empty-filtered (code_record_jkt), THEN the memo
fallback applies. The code record's dpop_jkt member is absent (no
null member) when no binding resolved - the exchange treats absent
as unbound, never as a bound-but-empty value.
Token exchange (RFC 9449 §10.1): when the code record carries a
dpop_jkt, the live proof's thumbprint MUST equal it - mismatch
answers 400 invalid_dpop_proof (.1). A proof from an
UNBOUND key on an unbound record mints a token bound to the live
proof's key (token_type: DPoP either way). The pre-bound value wins
over the live proof for the minted cnf.jkt (the request's key
holder is the party the authorization bound).
PAR replay posture (the pairing with the code gate): the code
record carries the interaction's par_key; the authorize/continue
code-writers call mark_par_used right after the Valkey
auth:authcode:{code} write succeeds. Combined with the burned-code
gate at exchange (code single-use), the platform guarantees: one
authorization interaction → at most one code → at most one token
grant, with the browser journey free to re-resolve the PAR any number
of times BEFORE the outcome.
9a.22 Authorization-endpoint rejects - the OAuth error-redirect posture & the require-dpop gate (FAPI2-SP negatives)
The FAPI2-SP module family under the HAIP plan contains five authorization-endpoint negative/expectation modules whose compliant outcome is an ERROR REDIRECT (or the object-precedence echo), not an inline JSON body:
-
The reject shape. Every authorization-endpoint reject reached AFTER the client + redirect_uri are validated, 302s to the client's redirect_uri as the OAuth error response (RFC 6749 §4.1.2.1):
error,error_description, and the interaction'sstate(when one was resolved). The DEFERRED-gate pattern: the PAR-mandatory violation (require_parwithout a request_uri) and the response_type restriction resolve at the same post-validation site. An inline 4xx body is neither an error redirect nor an error page - the suite's error-expecting modules read the CALLBACK (EnsureInvalidRequestError). When the redirect_uri is not (yet) validated - a missing/unknown client - the inline 400 stays (no open redirect). -
The PAR-urn-resolution reject (
invalid_request_uri). Arequest_urithat does not resolve (unknown urn or expired/retired PAR record) rejects as a 302 error REDIRECT to the (validated) redirect_uri witherror=invalid_request_urionce the query's client + redirect_uri are verified - the target client PUSHED the request_uri itself, so its registered redirect_uri is the RFC 9126 §4.1.3 error destination; the suite's request_uri-negative family (attempt-to-use-expired-request_uri, attempt-reuse-request_uri, request-uri-is-bound-to-client) readserrorfrom the CALLBACK (EnsureInvalidRequestUriError - exactinvalid_request_uri; the 3-way permitted sets {invalid_request, invalid_request_uri, access_denied}) and renders the ExpectInvalidRequestUriErrorPage placeholder from the landed callback. An inline 400 there leaves the browser on the AS origin with a JSON body - neither an error message to the client nor an error page (the hollow-REVIEW class this closes). When the query's client_id/redirect_uri are THEMSELVES invalid, the inline 400 stays (no redirect to an unvalidated target). The different-client violation (the urn resolves for another client) rejects the same channel witherror=invalid_request_uri(permitted by the bound-to-client module's 3-way set; the resolution result and the client-binding check share one site so the redirect decision happens exactly once, after redirect_uri validation). -
The PKCE reject family rides the same channels. A missing
code_challenge(the profile mandates PKCE) or a non-S256code_challenge_method(theplainmethod is out of posture) defers to the same post-validation site:error=invalid_requestredirect, JARM-wrapped (response=<JWT>) when the profile requires JARM and the request carriedresponse_mode=jwt(the PKCE-negative family reads the callback with EnsurePARInvalidRequestError - the plain form there logs the 'unexpected parameters' warning, the wrapped form decodes). Wire-proven: par-ensure-pkce-required + par-plain-pkce-rejected PASS in both cells. -
The FAPI1 PAR-transport PKCE mandate (OC-38's second axis). FAPI1-ADV Part 2 5.2.2-18 is a PAR-ENDPOINT rule, not the general
require_pkcecolumn: "if the pushed authorization request is used, the request MUST contain acode_challenge". The pushed transport underfapi_1_advancedtherefore REJECTS a PKCE-less push at/oauth/par(400 invalid_request) while the by-value transports (the signed request object and the plain form) carry no challenge - exactly the split OC-38 encodes (require_pkce=falseon the profile row, the PAR push enforcing its own transport mandate). The push-site gate keys on(profile == fapi_1_advanced && pushed && no code_challenge)- the challenge read from the FORM fields OR the request object's claims (the suite's happy flow pushes the whole request inside the JAR); the FAPI2 families keep the blanketrequire_pkcemandate (their PAR pushes AND by-value flows both carry challenges). -
The JAR-reject state echo. A by-value JAR flow carries its
stateONLY inside the request object (the outer query carries client_id, redirect_uri, and therequestparam - the suite's BuildRequestObjectByReference/ByValue modules put every authorization parameter in the object). When the JAR REJECTS (any of the mandate violations: the code-jarm pairing, the alg family, the freshness windows), the Ok-arm overlay never runs and the deferred reject's error redirect would carry NO state - RFC 6749 4.1.2.1 requires the error response to echo the request's state, and the suite's CheckStateInAuthorizationResponse reads exactly that (battery-10's response-mode-query failure: the reject redirect carried error + error_description but dropped the object's state). The Err arm therefore decodes the object UNVERIFIED to recover the state claim for the error redirect: the reject path never mints tokens, the recovered value is only echoed back to the redirect_uri, and the unverified decode carries the same trust level as the outer query's state (a plain request parameter - RFC 6749 4.1.3's state is an echo, never an input). -
The JAR-reject rides the JARM channel when the flow's response mode is jwt (battery-11, F1JARMERR-1). The by_value/jarm variant configures the flow with
response_mode=jwt(JARM-2.2): the reject an exp-less object triggers is part of the AUTHORIZATION RESPONSE contract, and under JARM the suite'sExtractJARMFromURLQueryreads the callback'sresponse=param for error JWTs too - a plain RFC 6749error=redirect carries NO response and the module dies withCouldn't find response in callback_query_params(WARNING then FAILURE then INTERRUPTED). The deferred JAR reject therefore dispatches its channel by the flow's own mode:response_mode=jwt- a JARM-mandating profile wraps the error in the JARM error JWT
(
iss,aud,exp,error,error_description, and the echoed state per 4.1.2.1) signed with the profile's signing alg - the same wrapping the PAR-mandatory, request_uri, and PKCE rejects already perform; the form_post and fragment families keep their existing channels and the plain-query families keep the bare error redirect (the query channel has noresponse=to extract - the suite's RejectErrorInUrlQuery readserror=directly there).
- a JARM-mandating profile wraps the error in the JARM error JWT
(
-
The by-value JAR scope mandate (battery-11, F1SCOPE-1). The PAR push rejects a scope-less request object at
/oauth/par(FAPI1-ADV 7.1 - the request object MUST carryscope), but the BY-VALUE authorize path accepted the same object: the Ok arm's overlay assigned the object's EMPTY scope toparams.scopeand the flow continued (a code minted through the continue + exchange), so the suite'sensure-request-object-without-scope-failsmodule - a by_value/jarm cell - read a signature-valid JARM response with NO error and failed "expected an error but did not". Both transports enforce the same JAR contract: the FAPI1-ADV authorize path raises the sameinvalid_request_objectreject when a by-value object leftparams.scopeempty (the check runs AFTER the overlay, so a non-empty object scope or a NON-JAR request is untouched; other postures - fapi_2, the plan-locked families - keep their own flows). The deferred channel machinery (the JARM wrapping, the state echo) applies unchanged. Verified: the targeted scope-less module FINISHED PASSED on all eight variant cells. -
The object-family reject contract map (battery-11 rounds 3-6, F1BADAUD-1/F1EXPOBJ-1/F1NBF-1/F1ALGNON-1/F1SIGOBJ-1). The suite's decompiled classes fix the error CODE each JAR reject must deliver:
EnsureInvalidRequestObjectError(the by-value authorize path) andEnsurePARInvalidRequestObjectError(the PAR push) both read theerrorfield and expectinvalid_request_object; the bareinvalid_requestcode fails "the 'error' field has an unexpected value". Every JAR-mandate violation therefore rides the explicit object-family head at BOTH transports - aud-mismatch (§jar.rs: the aud claim must equal the AS issuer), the exp freshness windows (exp-less, expired, exp-over-60s), the nbf/iat future windows (nbf/iat-over-60s), the unsigned object (alg=none), the RS256-forbidden alg family, the scope-less object (F1SCOPE-1's by-value overlay check), and the signature-verification failure (verify_client_signed_jwt's!verifiedarm). The by-value Err arm's DEFAULT maps bare heads toinvalid_request(the long-state/long-nonce/64-char-nonce param rejects thatEnsureInvalidRequestErrorreads), so a bare message on an object-family path silently delivers the WRONG code - the head is written explicitly at every object-family site. Verified: 8/8 variant cells per module (aud, exp, expired-request_uri, nbf, iat, alg-none, invalid-signature). -
The JAR-omitted redirect_uri serves the error page (battery-11 round-7, F1REDIRPAGE-1). The
ensure-redirect-uri-in-authorization- requestmodule stripsredirect_urifrom the by-value object AND the outer query, then expects BOTHExpectRedirectUriMissingErrorPage(FAPI1-BASE-5.2.2-9: the page says the redirect uri is missing) ANDCheckIfAuthorizationEndpointErrorto pass - the AS cannot REDIRECT any error without a presented redirect_uri, so the reject rides the inline browser error-page family (the page fires only when no safe redirect target exists), never the callback. The single-registration adoption would otherwise fillparams.redirect_uriand the deferred JAR reject would JARM-redirect to the adopted callback - CheckIfAuthorizationEndpointError fails that as "the authorization was expected to succeed". The JAR Err arm therefore sets a missing sentinel when the decoded object carries NO redirect_uri (the unverified decode - the same trust level as the state/response_mode echoes; the sentinel only steers the reject channel, tokens are never minted); the registered check classifies the sentinel as missing (no adoption, no registered match) and serves the error page. Every redirect_uri-bearing reject path (objects that DO carry a redirect_uri, outer-query flows, the PAR push's own 400 body) and the non-JAR adoption are untouched. -
Campaign terminal state (2026-10-26). Both f2 plans run terminal-ZERO-WARNING-ZERO-REVIEW green against the same deployed binary: fapi2-message-signing run16 = 117 module-instances (116 PASSED
- 1 FAIL-SANCTIONED multi-DPoP JVM collapse) and fapi2-security run7 = 89 module-instances (88 PASSED + the same sanctioned FAIL) - the request_uri-negative family (reuse/expired/bound-to-client), the PKCE negatives, and every error-page placeholder class resolve PASSED with zero warnings; the seed publishes RSA-PS256 keys (single-key JWKS per client) so the suite's RS256-negatives RUN (the alg-mandate rejects RS256-signed material) instead of skipping.
-
The missing-redirect_uri adoption (RFC 6749 §4.1.2.1). An authorization request that OMITS
redirect_uridoes not fall into the inline-400 class when the client has EXACTLY ONE registered redirect_uri: the AS adopts that registered URI for the request (and therefore for the error redirect) - RFC 6749 §4.1.2.1: "if multiple redirection URIs have been registered ... a redirection URI ... MUST NOT be used" - with a single registration the URI is unambiguous, and the OIDF dynamic-registration family (ensure-redirect-uri-in-request, ensure-registered-redirect-uri) resolves error outcomes through the callback. Zero or multiple registrations keep the inline 400 (the target URI would be an assumption). The adoption happens BEFORE the registered check in both authorize handlers, so every downstream validation error (response_type, PAR, PKCE, scope, JAR) redirects to the adopted URI witherror+state. The conformance rig resolves the two error-page expectation classes against this posture (sentin8-auth-oidffixtures/runner.ts): the FIRST suite-callback landing is trusted to resolve the redirect-surface class (EnsureInvalidRequestError); a placeholder still pending on the second observation uploads a real screenshot of the landed page (the ensure-request-object-with-redirect-uri / ensure-redirect-uri variants demand the error-page image itself), and an inline error page is captured as a real screenshot. Full Dynamic-OP plan 1Q5QEdutLpTgh: 23/23 terminal (16 PASSED / 7 REVIEW by-design), zero warnings. -
FAPI2-SP response_type restriction (posture-scoped, not PAR-scoped). The code-only rule (FAPI2-SP-FINAL-5.2.2-1: the hybrid forms (
code id_token,code token,code id_token token) and the bareid_token/tokenforms - in profile for plain OIDC - reject withunsupported_response_typeredirect) keys on the FAPI2 POSTURES (fapi_2_security_profile,fapi_2_message_signing), NEVER on the PAR mandate itself:fapi_1_advancedmandates PAR (Part2 §5.2.2-9) yet KEEPS the hybrid response types in profile (FAPI1-ADV-FINAL §5.2.2 leaves them legal; the suite's plain_response cells drivecode id_tokenthrough a pushed request) - the authorize serves the hybrid fragment response (§9a.13) under it. -
JAR state precedence (RFC 9101 - the object IS the request). The request object's
stateclaim is THE state: an outside value that differs is IGNORED (the callback echoes the object's state); an object WITHOUT state completes with NO state in the callback (AuthorizeParams.stateis empty → the callback omits the parameter). The state-conflict negatives (different-state-inside-and-outside, state-only-outside-not-used) accept this - the suite's VerifyNoStateInAuthorizationResponse / CheckStateInAuthorizationResponse classes. -
The redirect_uri match rule - exact registered string (the query-ADDED reject). A presented
redirect_urithat differs from the registered string ONLY by a query extension (<callback>?foo=barvs the registered bare<callback>) is NOT a registered URI: the authorize redirect check compares the presented value against the registered array EXACTLY (RFC 6749 §3.1.2.3 - simple string comparison; NO query-addition, no normalization). The FAPI1 query-suffix LENIENCY (8.x + the suite's AddRedirectUriQuerySuffix cell) is a STATIC-PLAN surface only - the dynamic-registration family (oidcc-redirect-uri-query-added) asserts the AS does not call a uri that was never registered (url_query: {foo:bar, code, state}was the pre-fix capture). The reject defers to the same post-validation site:error=invalid_requestredirect (inline 400 when the base URI itself is unknown - no open redirect). -
The require_dpop resource-surface rules (RFC 9449 §7.1 wire discipline). (a) EXACTLY ONE proof per request: a resource request (userinfo) carrying MORE THAN ONE
DPoPheader rejects400 invalid_request('multiple DPoP proofs') - the suite's dpop-negative cell ('Try with more than one DPoP in the header', EnsureHttpStatusCodeIs400or401/.1; the 200-on-duplicate was the live-found gap); (b) a proof REMOVED from a bound request rejects 401 (the sender constraint still applies); (c)athbound to the access token (the proof must carry the token's hash). -
The DPoP-bound token's certificate-branch fall-through (DPoPRS-1c). The certificate shortcut inside the userinfo sender-constraint gate admits ONLY platform workloads: a TLS certificate whose CA-verified subject carries the
m2m-prefix satisfies thecnf.jktconstraint (the cert IS a sender constraint, RFC 8705 §3 - Shield resolvers, BFF session enrichment, the auth→sys proxy). A certificate WITHOUT them2m-prefix is NOT a workload identity and NOT a defect: the FAPI2 mtls/dpop cross cell (client authtls_client_auth, sender constraint DPoP - the suite presents its CONFORMANCE CLIENT certificate on the TLS connection while the token is jkt-bound) must fall through to the standard DPoP proof verification (htu/ath/jkt) - the reject 'certificate identity is not a platform workload' answers a conformance client, not a forgery, and the cross cell's userinfo 401 was exactly that defect. Only thex5t#S256-bound branch keeps its absolute thumbprint equality (a cert-bound token demands its own certificate). -
The require-dpop gate (holder-of-key). Under
require_dpop=true(the FAPI2-SP/sender-constrain=dpop posture), a token-exchange WITHOUT a live DPoP proof AND without a pre-bound code-recorddpop_jktcannot satisfy the sender-constraint: it rejects400 invalid_dpop_proof(.1: sender-constrained authorization requires proof of possession). The mTLS-presented certificate IS the sender constraint (RFC 8705 §3): when the token exchange presents a client certificate (the proxy's thumbprint context) the DPoP gate is satisfied by the cert - the cert-bound cnf mint takes over (no jkt,Bearer). A client whose registered auth method is the certificate (self_signed/tls_client_auth) or whose exchange presents ANY thumbprint is unaffected. (DPoPRS-1d) The cert substitute serves only the CERT-constrained interaction: a code record carrying a pre-bounddpop_jktchose DPoP as its sender constraint (the FAPI2 mtls/dpop cross cell - the client certificate authenticates the client, DPoP constrains the token). A pre-bound jkt with NO live proof at the exchange rejects400 invalid_dpop_proof- the certificate never substitutes for a key the record already bound (the suite's ensure-holder-of-key-required module strips the DPoP header, keeps the client cert, and reads the 4xx). (DPoPRS-2) The registration discriminator: the wire pair (cert-present + no proof) is AMBIGUOUS between the mtls/mtls happy path (the cert IS the sender constraint - MUST succeed) and the mtls/dpop negative (DPoP constrains the token - MUST 4xx) - the suite runs both against the SAME cert-authenticated client shape and differentiates ONLY by the cell's registered sender-constraint posture. The server resolves it from the client REGISTRATION: a client flaggeddpop_bound(the sender_constrain=dpop cell's registration) MUST present a live DPoP proof at the exchange even when a certificate authenticates it -400 invalid_dpop_proof(FAPI2-SP-FINAL-5.3.2.1-6). The pre-bound-jkt path (DPoPRS-1d) remains for the flow-bound key; the registration flag governs the PAR-silent case. The conformance rig registers a DEDICATED cross cell client (fapi2-mtls-dpop, self_signed_tls_client_auth + dpop_bound) - never reusing the plain mtls cell's client - and the token endpoint reads the flag from the authenticated client row. (OC-33, revised against RFC 9449's text) The refresh chain is sender-constrained at the REQUEST level, not the token level: §5 binds the ACCESS token'scnf.jkt(the §7.1 resource proof must come from that key), but the refresh GRANT (§7) only demands A valid DPoP proof on the request - the proof's key REBINDS the freshly minted access token (the wallet may rotate its DPoP key across the refresh). The refresh token carries NO DPoP cnf (stamping the original jkt would hard-bind it and reject the legitimate rotation); the missing-proof negative is enforced by the request-level require-dpop gate (§5.3.2.1-6,400 invalid_request). The ATCA instance-key form (§9a.19) REMAINS hard-bound on the refresh token (draft 10.3: a grant minted under OAuth-Client-Attestation re-presents the SAME instance key). -
The per-client sender-constraint posture (OC-38). The sender-constraint decision is REGISTRATION-SCOPED, not env-scoped:
oauth_clients.sender_constrain(dpop|mtls|any) is the first-class per-client posture and the request-level DPoP gate keys on it -(profile.require_dpop || client.sender_constrain == "dpop")- so a DPoP-constrained cell enforces its proof without any env flag, and a cert-authenticated client whose registration issender_constrain="mtls"accepts the certificate as THE sender constraint (RFC 8705 §3). This resolves the wire-pair ambiguity DPoPRS-2 already identified (cert-present + no proof is the mtls/mtls happy path AND the mtls/dpop negative): the REGISTRATION differentiates, andanypreserves the historical profile-governed behavior. FAPI2-SP §5.3.2.1-6 ("the client SHALL specify which credential type is used to sender-constrain the access token") names the per-deployment choice - the registration IS that specification. Thedpop_boundboolean remains as the DPoPRS-2 registration view. -
PKCE is its own column (OC-38).
security_profiles.require_pkceis a REAL profile flag - no longerrequire_par's mirror. The standards split the two axes: FAPI1-ADV Part 2 §5.2.2-18 requires PKCE only on the PAR transport ("if the pushed authorization request is used ... the request MUST contain acode_challenge") and its NOTE explicitly declines to require PKCE elsewhere (backwards compatibility with the by-value request object), sofapi_1_advancedsetsrequire_pkce=falseand the by-value happy flow carries no challenge; FAPI2-SP mandates PKCE unconditionally on the authorization request, sofapi_2_security_profile/fapi_2_message_signingsetrequire_pkce=true. The authorize-side PKCE gate therefore keys onrequire_pkcealone - the PAR-riding coupling (require_parimplying PKCE) is retired, closing the mtls/by_value cell defect where the by-value happy flow 400'd with "PKCE code_challenge is required".OC-38 cell behavior (the registration + profile pair decides):
client auth sender_constrain proof at exchange outcome pk dpop DPoP proof verify + bind cnf.jktpk dpop none 400 invalid_dpop_proofpk mtls (or any + cert) certificate (TLS layer) cert-bound cnf.x5t#S256pk mtls neither (cert stripped) 400 invalid_request- the mtls-senderregistration DEMANDS its certificate (the OC-38 cell table) mtls dpop certificate only 400 invalid_dpop_proof(DPoPRS-2)mtls mtls certificate cert-bound (RFC 8705 section 3) any any neither profile gate decides (env require_dpopfor HAIP plan-fixed cells)certificatein this table = the TLS CONNECTION carried a client certificate (the thumbprint header rode), which is true for BOTH the cert-auth cells (the cert authenticates) and the pk/mtls cells (the cert rides the handshake while the assertion authenticates - RFC 8705 section 3 distinguishes authentication from binding). -
The mtls-sender registration demands its certificate at the exchange. OC-38's registration gate is SYMMETRIC: a
sender_constrain=dpopregistration demands a live DPoP proof (the400 invalid_dpop_proofrow above), and asender_constrain=mtlsregistration demands the client CERTIFICATE at the token exchange - the certificate IS the sender-constraining credential the registration named (FAPI2-SP 5.3.2.1-6: the registration specifies the credential type). The suite's ensure-holder-of-key-required negative on the private_key_jwt/mtls cell strips BOTH the cert and the DPoP proof and reads the 4xx; with the registration left atanyno gate fired and the exchange 200ed (battery-9, both fapi2 and fapi2-signing, the single module failure in each). Target state: the token-exchange gate keys on BOTH registration members -(profile.require_dpop || client.sender_constrain == "dpop")keeps demanding the proof, and the mtls-sender reject fires when the CONNECTION carries no client certificate.The certificate is read from the TLS CONNECTION, not the authentication method (RFC 8705 section 3). The gate's probe is the sentin8-tls-injected thumbprint header union (
authenticate_client's cert-auth arm || the presented-cert headers) - NOT thecert_thumbprintmember alone. That member is only set when the client AUTHENTICATES by certificate (self_signed_tls_client_auth / tls_client_auth); aprivate_key_jwtclient keeps itNoneEVEN WHEN the TLS handshake presented its config certificate (the sentin8-tls layer injectsX-Sentin8-Client-Cert-Thumbprinton every cert-bearing handshake). The FAPI2 private_key_jwt/mtls cell is exactly that shape: assertion-auth + the SAME mtls cert pair attached at the TLS layer on every token call (the suite attaches config.mtls to the token POST, /oauth/token). The wire-proven split: the happy flow presents the cert at TLS (the header rides, the gate passes, the token mintscnf.x5t#S256via the same header union at the bind site) and the negative's RemoveMTLSCertificates strips the cert (no header, the gate rejects400 invalid_request). Keying the gate on the auth-method arm alone would kill the pk cell's happy flow (battery-10's fapi2 + fapi2-signingCheckTokenEndpointHttpStatus200interrupts), because the assertion-auth arm never sets the member.The registration-to-cell mapping is EXCLUSIVE per flow shape: the mtls-sender registration belongs ONLY to cells whose happy flow PRESENTS the certificate (the FAPI2 private_key_jwt/mtls cell: assertion-auth + cert-present; the negative strips it). A cell whose happy flow presents NEITHER a proof NOR a certificate (the FAPI1-ADV private_key_jwt cells - assertion-auth, plain token POST on the mtls alias, no TLS client auth in the request shape) must NOT ride the mtls-sender registration: the gate would reject its happy flow (
400 client certificate required, the battery-10 fapi1 live finding). The conformance seed therefore registers a THIRD jwks client family for those cells -cert-fapi1-pk(sender_constrain:"any", the profile gate governs) - whilecert-fapi2-mtls-pk(sender_constrain:"mtls") serves the FAPI2 mtls-sender cell andcert-fapi2-mtls(self_signed cert auth,sender_constrain:"mtls") serves the CERT-auth cells; the cross cells keep dpop. The FAPI1 spec's pk cells read the fapi1-pk family. -
The rig seeds the REAL column per family (OC-38's rig application). The conformance seed (
conformance-seed.sh) setsrequire_pkcefrom the certification family's plan profile - the same standards table the server-side flag encodes - with NO post-FLAGSoverride line: a JSON later-key-wins override would silently overwrite the per-family posture for every env. The rig table the seed writes:rig family profile require_pkceauthority fapi2, fapi2-signing fapi_2,fapi_2_message_signingtrueFAPI2-SP mandates PKCE unconditionally on the authorization request fapi1 fapi_1_advancedfalsePart 2 §5.2.2-18 NOTE: PKCE rides the PAR transport only; the by-value happy flow carries no challenge vci-issuer, vci-haip vci,vci_haiptruethe wallet cells always push S256 challenges (the issuance code flow is challenge-carrying end-to-end) smoke, oidc-basic, oidc-config, oidc-dynamic, logout standardfalseplain OIDC Core: all FAPI flags off (runbook §9a.5 step 2) implicit, hybrid standardfalsethe response-mode families ride the plain OIDC posture (§9a.25) formpost formpostfalsethe Form Post OP profile is the plain OIDC posture (§9a.25) sessionmgmt sm_sessionfalsethe Session-OP trio needs no flags (§9a.26) fcl fclfalsethe FCL surface rides the client registration, not a flag set (§9a.28) ciba fapi_cibafalsethe CIBA channel never touches the authorize endpoint; the plan's happy flows carry no code_challenge oid4vp vpfalsethe verifier family rides the plain OIDC token posture (§9a.27) A stale seed line that mandates PKCE on the
standard/fapi_1_advancedfamilies 400s every browser-driven happy flow at the authorize gate (invalid_request: PKCE code_challenge is required by the active security profileon the callback) - the exact regression class the per-familyFLAGSexist to prevent. -
The revocation cascade on the resource surface. The code-replay revocation (RFC 6749 §4.1.2 -
crate::grants::revoke_by_idon the detected replay) must hold EVERYWHERE the grant's tokens speak: the credential endpoint enforcesis_token_revoked+is_grant_revokedthe same way userinfo does - after the replay revocation the FIRST token (the replay's sibling) stops authorizing resources (the suite reuses the code 1s later, then calls the resource with the FIRST token and expects 4xx). -
The browser-visible authorize rejects (RFC 6749 §4.1.2.1). When the authorization request CANNOT be redirected - an unknown
client_id, or a missing/unregisteredredirect_uri- the server MUST NOT auto-redirect and SHOULD inform the resource owner: the GET/oauth/authorizesurface serves the SAME JS-free error-page family as §9a.23 with the reason in the text (the suite'sExpectRedirectUriMissingErrorPage/ExpectRedirectUriErrorPagemodules demand a page saying the redirect uri is missing from the request / the redirect uri is not registered). The JSONinvalid_requestbody stays on the NON-BROWSER surfaces: the PAR endpoint (the client-facing API - the suite's PAR checks read the error body) and/oauth/authorize/continue(an SPA-internal POST). The missing-redirect_uri ADOPTION rule above is unchanged: a request with exactly one registered URI still adopts it (and downstream errors redirect there); the page fires only when no safe redirect target exists (zero/multiple registrations with none presented, or an unregistered presented value, or an unknown client).
9a.23 Logout error surface - the terminal logout pages (OIDC RP-Initiated Logout)
The suite's oidcc-rp-initiated-logout family drives THREE error/confirmation
surfaces the OP must serve as REAL, visible pages (the pre-9a.23 posture
silently 302'd everything to /sign-in):
bad-post-logout-redirect-uri/query-added-to-post-logout-redirect-uri(ExpectPostLogoutRedirectUriNotRegisteredErrorPage): a PRESENTEDpost_logout_redirect_urithat is not registered for the identified client serves the error pageInvalid request - the post_logout_redirect_uri is not registered for this client.bad-id-token-hint/modified-id-token-hint(ExpectInvalidIdTokenHintErrorPage): a PRESENTEDid_token_hintthat does not verify as a token THIS OP issued (or whoseauddoes not resolve to a client) serves the error pageInvalid request - the id_token_hint is not valid. The registered-URI redirect NEVER fires for a bad hint - the hint gate runs BEFORE the landing check.no-id-token-hint(with apost_logout_redirect_uripresent): the error pageInvalid request - the id_token_hint is missing- a landing target MUST NOT be honored without the client identification the spec requires (the redirect target is untrusted otherwise).no-params/no-post-logout-redirect-uri/only-state(ExpectSuccessfulLogoutPage): a logout with NO landing target (absent/empty hint or URI, or hint-only with no registered landing) is a session-scoped logout: it clears the session and serves a TERMINAL confirmation pageYou have been signed out.(the suite screenshots the successful-logout page - a redirect to/sign-inshows the LOGIN page, not a logout confirmation).
All four shapes ride the SAME server-rendered panel family (the §9a.8
JS-free posture: stable element ids, no JS, HTTP 200, the session
cookie ALWAYS cleared - the logout side effect completes on every
terminal page). The landing-redirect path is unchanged: a VALID hint
(+ client_id fallback) with a REGISTERED post_logout_redirect_uri
still 302s to the landing with the echoed state.
The harness (sentin8-auth-oidf fixtures/runner.ts) recognizes the
auth-served terminal pages by their URL (/oauth/logout) and uploads a
real screenshot of the visible page - the module's placeholder resolves
with the page shown (no about:blank, no JSON body).
9a.24 Delegated (and service-projection) mints sign the TENANT family
Every mint path that produces a token a DOWNSTREAM service must verify
through the tenant-plane filtered JWKS (§9a.9) resolves the target
tenant's signing_alg and signs with sign_value_alg(claims, family)
- including
POST /delegate/access-token(the delegated token's env isreq.env_id, normally a NON-system target env) and the session-cluster data-plane projections (/v1/session/...service tokens +delegated_from_publisher). The family-blindSigningKeys::sign()(process-active key) is reserved for tokens that never cross a tenant-plane JWKS boundary. Rationale: the JWKS endpoint publishes ONLY the verifier's resolved family (from_keys_family), so a token signed by the other family - even with a valid signature - is unverifiable for every resource server the tenant-plane lookup serves (key {kid} not found in JWKS→ 401). The delegated token'saudis the target resource indicator and itsenv_idis the target env; both sides of the contract (mint family, published family) MUST resolve through the sameresolve_security_profile_for_envseam so a mint never races a profile row it did not consult.
The resolution projection (§9a.24b). userinfo's delegated branch
resolves the act user's live roles/scopes but only projects them
when platform_claims holds (system-env token OR non-FAPI caller
profile). A delegated token's env_id is the TARGET tenant env, so a
Shield role resolver's resolution (the mechanism evaluate_full uses
to build ctx.scopes) received roles: None, scopes: [] under a FAPI
profile - the empty live set OVERWROTE the verified JWT scope seed and
the scope-mirror fail-closed every delegated mutation (the 2026-10-28
e2e invitation 403). The projection also rides when the CALLER is a
certificate identity: the TLS-injected m2m-* subject + non-empty
thumbprint (the SAME signal the DPoP gate trusts in DPoPRS-1 -
Shield resolvers, BFF session enrichment, and the auth→sys proxy all
authenticate by certificate, never a DPoP proof). A browser-borne DPoP
proof caller keeps the OIDC standard-claims surface.
Identity-channel self-heal (DPoPRS-1b). The resolver's certificate
client is minted once at boot - a cold start may race Acme/proxy warm-up
and mint-fail, leaving the resolver bearer-only. The re-arm is therefore
AVAILABLE (not pre-consumed) in that state: the first resolution that
needs the certificate channel re-mints {service}-tls (Acme is up by
then - steady-state requests are never a boot race), arms the channel,
and every later resolution rides it. Without the self-heal, a boot-race
mint failure locks the resolver to bearer-only for the process lifetime
and every delegated-token evaluation fail-closes with empty live scopes
(the invitation-403 class).
9a.25 Implicit + Hybrid + Form-Post OP certification (OIDCFP-1)
The OP-side certification family beyond Basic (the OIDF profiles
Implicit OP, Hybrid OP, Form Post OP): three suite plans driven
per family env.
Implicit (oidcc-implicit-certification-test-plan). 58 module
runs per cell across response_type ∈ {id_token, id_token token}
(the plan's two pinned entries; client_auth_type pinned
client_secret_basic - unused since implicit clients carry no client
secret at the browser). Served by the §9a.13 fragment cells: the
authorize response encodes id_token/access_token + state (+
code/iss when present) in the URL FRAGMENT over the registered
redirect_uri. Module demands beyond basic: nonce is MANDATORY for
both types (OIDC Core §3.2.1.1 - the authorize gate rejects a no-nonce
request with the error redirect invalid_request),
at_hash rides the id_token ONLY when an access token was issued
with it (OIDC Core §3.3.2.11 - the id_token-only cell issues no
access token and a hash of nothing is a placeholder the suite's
ValidateAtHash setup rejects), the authorization-endpoint id_token
carries the §5.4 SCOPE-mapped standard claims (profile → name, email
→ email: the fragment cell's id_token is the only token the client
receives, so the scope IS the claims request - the OPPOSITE of the
token-endpoint id_token's §5.5-conservative surface, and the reason
the implicit family needs NO dedicated security profile: the
distinction keys on response_type, not a flag matrix), and the
fragment error channel mirrors
the success channel (§9a.22's error-fragment branch). Suite-side the
browser reads location.hash and POSTs it to the suite's
implicit_submit path - the OP only performs the standard 302.
Hybrid (oidcc-hybrid-certification-test-plan). Three
response-type entries (code id_token, code token,
code id_token token), each run over fragment + the token endpoint's
code exchange with client_secret_basic (one client_secret_post
module). Demands: c_hash alongside at_hash on fragment id_tokens
(the mint adds c_hash when the record carries a code), the
authorization-endpoint id_token carries the §5.4 scope-mapped
standard claims (the implicit family's fragment posture), auth-code
single-use (invalid_grant on reuse - the burned-code cascade §9a.11)
and the 30s-reuse module's access-token revocation cascade,
PKCE-bearing code requests MUST succeed, userinfo (GET + POST both
auth styles) for every type.
Form Post (oidcc-formpost-{basic,hybrid,implicit} = the ONE Form Post OP profile). The same three plans' module lists with
response_mode=form_post: the authorize response (and its error
channel) is a 200 HTML auto-POST form to the redirect_uri
(<form method="post" action="{redirect_uri}"> + one hidden input per
parameter, autosubmit JS) instead of the query/fragment redirect.
response_modes_supported advertises form_post when the env's
profile is one of the formpost family (profile-scoped discovery
honesty - the same seam as the FAPI jwt mode); the client row's
registration carries no change. The suite's callback asserts:
HTTP POST body application/x-www-form-urlencoded, NO code/error in
the URL query.
| Plan cell | response_type | response_mode | channel |
|---|---|---|---|
| implicit | id_token / id_token token | fragment | 302 fragment |
| hybrid | code id_token / code token / code id_token token | fragment | 302 fragment + token exchange |
| formpost-* | the source plan's types | form_post | 200 HTML form |
9a.26 Session management + third-party-initiated login + backchannel-rp-initiated logout (OIDCSM-1)
The three additional certifiable OP plans that ride the logout stack (each a small plan over the existing §9a.23 logout surface):
Session management (oidcc-session-management-certification-test-plan).
(a) discovery advertises check_session_iframe =
{issuer}/oauth/check-session/iframe - the endpoint serves the OIDC
Session Management 3.3 postMessage listener: the embedded OP iframe
answers the RP iframe's message with the plain string
unchanged | changed posted with the ASKER's origin as the
targetOrigin (the reply's receiver-side restriction - the RP
holder validates the message's SENDER origin = the OP's issuer
origin); the message format is
client_id WS session_state WS [salt] WS (the spec's trailing
space ALWAYS closes the value; a saltless sender omits the salt but
keeps the trailing space, e.g. id state ; the suite's holder sends
id state without the trailing space - the shim split accepts both
two- and three-token forms); the LIVE state check is an XHR GET to
{issuer}/oauth/check-session?client_id=..&session_state=..[&salt=..]
(the browser cannot hold the HS256 secret); (b) every interactive
authorize mints session_state = HS256 over
client_id + ' ' + session token id, SHA-256-folded with the salt,
base64url-truncated to 24 bytes (the salt derives from the issuer:
base64url(SHA256(issuer)) - deterministic, stable across
instances, opaque to clients since it rides INSIDE the hash
derivation), and the authorize response carries it (query +
fragment channels alike); (c) RP-initiated logout REVOKES the
session row (§9a.23) so the iframe's next poll answers changed;
(d) the suite's final prompt=none re-auth answers the logged-out
error (session independence proven).
Third-party-initiated login (oidcc-3rdparty-init-login-certification-test-plan).
DCR metadata round: (a) an https initiate_login_uri (OAuth-R) is
accepted at registration and echoed by BOTH the registration response
and GET {registration_client_uri} (RFC 7592's client-config
endpoint); (b) a non-https initiate_login_uri rejects 400 invalid_client_metadata (the URI's scheme is validated at the same
surface as every redirect_uri rule). The OP is not required to drive
the third-party initiation itself (the suite asserts the metadata
contract).
Backchannel + RP-initiated logout (oidcc-backchannel-rp-initiated-logout-certification-test-plan).
(a) id_tokens mint sid = the OP session's id (the sessions.token_id
the browser cookie holds - the OP's Session ID per Back-Channel
Logout 1.0 §2.1; its contents are opaque to the RP). EVERY mint
site stamps it: the interactive/hybrid/implicit fragment id_tokens
(the authorize paths that resolved the session cookie) AND the
authorization-code exchange at the token endpoint - the code record
carries session_token (the code is minted only for a signed-in
user, so a session id always exists there) and id_token["sid"]
= that value. The logout token's sid MUST equal the id_token's
(Back-Channel Logout 1.0 §2.6 step 11 - the suite's
CheckIdTokenSidMatchesLogoutToken), and both ride the SAME
session identifier: the sid mint sites and the fanout derive it
from the destroyed session row (never from an unrelated mint-time
session).
(b) the Logout Token itself (Back-Channel Logout 1.0 §2.4):
iss, aud = the client, iat, exp (REQUIRED - short: 2
minutes, the spec's anti-replay posture), jti, events
http://schemas.openid.net/event/backchannel-logout: {}, sub
(the logged-out user - present when the session row is known),
sid, NO nonce, and the JOSE header typ: logout+jwt (the
spec's explicit-typing recommendation - a Logout Token MUST NOT be
usable as an id_token).
(c) the RP-initiated logout handler FANS OUT the backchannel
logout as its side effect (the registered clients with
backchannel_logout_uri receive the Logout Token - §2.5's
application/x-www-form-urlencoded POST with a single
logout_token parameter). The fanout's client set resolves
INSIDE the session's own tenant context (sentin8_set_tenant_context
on the SAME transaction that selected the revoked session's
env_id): oauth_clients is FORCE-RLS and every
context-less SELECT returns 0 rows - a fanout under the SYSTEM
context (or worse, no context) would silently notify nobody.
Back-Channel Logout 1.0 §2.3 ("remembering logged-in RPs") binds
the set to RPs that actually logged in through THIS session: the
session_clients table records one row per (session, client) at
authorization-code mint (the moment the RP obtains tokens for the
session's user), and the fanout notifies ONLY the bc-registered
clients bound to the destroyed session - so an unrelated
bc-registered client is NOT notified of a session it never saw
(the recording is best-effort: a failed insert never blocks
issuance). The fanout runs best-effort (never blocks the
redirect - §2.5's no-retransmit posture), single attempt per
client.
(d) discovery keeps backchannel_logout_supported: true +
backchannel_logout_session_supported: true; (e) after logout the
suite's prompt=none re-auth fails (the session is destroyed).
The RP metadata contract (§2.2): DCR (RFC 7591) accepts + echoes
backchannel_logout_uri (absolute URI, no fragment) and
backchannel_logout_session_required (boolean - the RP's demand
that the Logout Token carry sid); the RFC 7592 client-config
endpoint (GET/PUT /oauth/register/{client_id}) serves the same
two fields. A STATIC client's backchannel_logout_uri is
registered through the SAME RFC 7592 surface - the certification
harness (which owns the client) PUTs the field with the client's
registration_access_token before the module runs, exactly like a
RP operator would; there is no test-only registration path.
9a.27 OID4VP verifier family - DCQL + direct_post.(jwt) + x509_hash (OID4VP-1)
The OID4VP verifier surface (wallet.rs) is rebuilt to the standard so
both the certifiable oid4vp-1final-verifier-haip-test-plan and the
alpha plain plan run against it (the suite plays the WALLET; the
deployed verifier is exercised through its own endpoints):
- The verifier-request creator
POST /v1/auth/verifier/request(query paramsclient_id+redirect_uri, the harness/OP-UI entry): builds the presentation REQUEST (DCQL - the OID4VP 1.0-Final credential-query form), mints a fresh single-use 128-bitnonce(Valkey, TTL 600s), and serves the SIGNED request object atGET/POST /oauth/vp/request/{request_id}withtyp oauth-authz-req+jwt, signed by the verifier's x5c chain (x509_hashclient-id prefix:client_id = x509_hash:<sha256-thumbprint of the request object's x5c[0]>- the WALLET derives and checks the equality). The authorization request URI (qr_data) carriesclient_id+request_uri+request_uri_method=postin its QUERY (OID4VP-1final 5/5.10 - the wallet cross-checks the query's client_id against the request object'sclaims.client_id, 5.9.3, and the method-post cell demands the query hint). The request object carriesaud = https://self-issued.me/v2(SIOPv2 6.1 - the wallet IS the audience) + the closedclient_metadatakey set (OID4VP PR 233):vp_formats_supported(dc+sd-jwtwith sd-jwt/KB alg lists),encrypted_response_enc_values_supported(A128GCM+A256GCM- HAIP-5's mandatory encrypted responses), andjwks(the PER-REQUEST ephemeral ECDH-ES / P-256 enc key - key reuse is a HAIP failure). One shared builder (verifier_client_metadata) serves both the creator's mint and the request_uri fetch (the served object and the qr_data's object are metadata-identical). Therequest_uri_method=postPOST re-signs with thewallet_nonceecho stamped. - The response endpoint (
POST /oauth/vp/response) answers OID4VP §8.2: the body arrives EITHER form-encodedvp_token=OR the direct_post.jwt form (response=<JWE>, the suite's form- encoded envelope; a rawapplication/jwtbody is also accepted). The JWE decrypt (ECDH-ES, A128GCM 16-octet CEK or A256GCM 32-octet - the ConcatKDF rides the enc name) resolves the request by the envelope'skid; the decrypted payload'svp_tokenis the DCQL OBJECT form (a map of credential id -> token array, OID4VP-1final 6.2 - the single-credential cell extracts the one token). The verifier then checks the KB-JWT (the key derives from the credential'scnf.jwk; an embedded headerjwkis optional - the signature against cnf.jwk IS the binding, SD-JWT VC 7.2;aud= the request's client_id,nonce= the request's nonce,sd_hashover the pre-KB form,iatwindow), the credential signature (the connection'strusted_issuersJWKS), status-list revocation (the credential'sstatus.status_list.uri+idx- the list is fetched ASYNC-NATIVE before the sync verify (a block_on in the handler deadlocks the runtime); the OTSL JWT body carriesstatus_list.{bits,lst}- zlib or raw DEFLATE, LSB-first bit packing, multi-bit entries, cached 5 min), then answers200 {"redirect_uri": "..."}ONLY. Error responses are JSON in ALL cases ({"error": "invalid_request"|"invalid_token", "error_description": ...}- the wallet parses any status as JSON) and the stored request is consumed either way (a negative cannot be replayed). Theredirect_urianswer carries the verification OUTCOME for the OP-hosted landing: the redirect target embeds a single-useverification={token}reference (a Valkey rowauth:vp:done:{token}-> the verified presentation's display facts - issuer, vct, the disclosed claims, the verification timestamp - TTL 15 min).GET /wallet-verifier/done?verification={token}(the OP-hosted verifier landing when no OAuth redirect_uri drove the request) serves a REAL success page - a small server-rendered HTML document displaying the verified credential's contents (the OIDF suite'sExpectVerifierSuccessfulVerificationPagerequires a screenshot of exactly this: "a page displaying the credential contents"). The token resolves ONCE; an unknown/expired token renders the terminal "verification not found" state (never a sign-in form - the landing is a verifier surface, not the auth SPA). When an OAuth client drove the request the landing stays out of the path: the redirect keeps going to the client'sredirect_uriwith the downstreamcode(the §8.2 contract).
- The verifier metadata (
/.well-known/openid-credential-verifier) stays honest: the SINGLE client_id form used by the requests (x509_hashprefix under HAIP), the vp formats +sd-jwt_alg_values/kb-jwt_alg_values, the response modes + encryption metadata actually used,client_name. - The eudi_wallet enterprise connection (
enterprise_connectionsrow, strategyeudi_wallet,configJSONB): the verifier's trusted-issuer set +min_level_of_assurance(the conformance env pinslow- the suite's PID credential carries noacrclaim). The connection gates the request creator (404 without one) and its JWKS set verifies the presented credential's signature. The admin surface (create/update/list/get) carries theconfigcolumn; the admin API's token verify is TENANT-AWARE (a token minted on a tenant auth host carrieshttps://auth.{env-domain}- the same issuer family rule the token endpoint applies, DESIGN §4; without it a tenant user's own admin grant can never reach their env's admin endpoints).
Response modes + credential formats (zero-gap target, OIDF-ALL-1/OIDF-ISO-1).
The verifier accepts BOTH response modes - direct_post/direct_post.jwt
(the shipped path) AND dc_api/dc_api.jwt (the DC API presentation
channel: the wallet sends the transaction response over the Digital
Credentials API request/response session instead of the direct_post
endpoint; the request object's response_mode + dc_api_query select
it, and the response_uri answer resolves the same way). The verifier
accepts BOTH credential formats - sd_jwt_vc (shipped) and
iso_mdl/mso_mdoc (the mdoc DCQL cells; the issuance side gains the
mso_mdoc credential-configuration format with its data elements and
the verifier's vp_formats_supported advertises it). The catalog's
four OID4VP+HAIP wallet cells (sd_jwt_vc x direct_post.jwt x
dc_api.jwt, iso_mdl x direct_post.jwt x dc_api.jwt) all run
green. The wallet plans' alpha cells (oid4vci-1_0-wallet-test-plan)
keep their discovery-entry run.
Campaign verdict (OID4VP-1, wire-verified). Both plans (the certifiable HAIP verifier plan + the alpha plain plan) run every module to terminal: 16 PASSED + 10 REVIEW, zero FAILED/SKIPPED/INTERRUPTED, zero WARNINGs - the happy flow, the minimal-cnf-jwk, the request-uri (POST-method + fetched-twice) cells, the full negative battery (invalid KB-JWT signature/nonce/aud, the credential signature, the sd-hash, the iat windows, the revoked credential), and the present-without-status cell.
The ISO mDL verifier seat (OIDF-VPERMDL-1). The HAIP verifier
plan drives BOTH credential formats: the sd_jwt_vc cells mint the
vp_token from the suite's wallet key + KB-JWT (the battery above),
and the iso_mdl cell presents the SUITE's self-minted DeviceResponse
CreateMdocCredentialbuilds the presentation from the suite's own pre-provisioned doc store (mDL/PhotoID/EU-PID documents, session transcript bound), the DCQL preset carriesmeta.doctype_valuefrom the credential_type axis, and the presentation rides the samedirect_post.jwtresponse. The VICAL checks the ISO_MDL variant adds (SetupVicalFromConfiguration->ValidateOwnMdocSigningChainAgainstVical) rideskipIfObjectsMissing(vical)with an INFO-level skip - an absent VICAL config skips clean (the suite's ownRegisterVicallogsNo VICAL configured, skipping VICAL-based mdoc issuer trust checks); the mdoc trust on the OP side stays the connection'strusted_mdoc_dsadmission list (empty = the self- consistency fallback the §9a.29 DeviceResponse verifier already passes). The seat mirrors the wallet-role's iso_mdl cells (OIDF-ISO-1): no new platform surface, only the second plan create in the harness spec.
The DCQL format knob (the seat's request surface). The seat
EXPOSED a real platform constraint: the authorization request's
dcql_query must be format-HOMOGENEOUS per variant - the suite's
CheckDCQLQueryCredentialFormatMatchesTestConfiguration aborts when
ANY served entry's format differs from the variant's (iso_mdl ->
mso_mdoc, sd_jwt_vc -> dc+sd-jwt), and CreateMdocCredential
presents from the FIRST mso_mdoc entry's meta.doctype_value. The
creator's default mixed 3-entry query can never satisfy that check
under a single variant. The fix is a per-request DCQL selection on
the verifier-request creator: POST /v1/auth/verifier/request?...&format={iso_mdl|sd_jwt_vc} selects the
entry set (iso_mdl -> the mDL + EU-PID mdoc entries, both doc types
presentable from the suite's store; sd_jwt_vc -> the dc+sd-jwt PID
entry), the format pin rides the pending record, and the SERVED
request object (the wallet's request_uri fetch - the effective
authorization request merges the served object's claims over the
HTTP params, so the served object's dcql IS the cell's dcql) rebuilds
its dcql_query from the SAME table - the creator and the fetch
surface stay format-consistent. An unknown pin fails with 400
(loudly, never silently serving a query the format check would
abort); the ABSENT pin keeps the mixed 3-entry query the wallet-app
sign-in flow serves (the sd_jwt_vc verifier family's format check
binds only modules that consumed the served object under that
variant, so the mixed entries stay compatible with the green family).
The harness passes the plan's pinned credential-format axis through
runModule into the intake POST.
The mdoc transcript's response-encryption thumbprint. The
encrypted direct_post.jwt mdoc cells bind the JWE key into the
transcript: the suite's CreateVP1FinalVerifierIsoMdocRedirectSession TranscriptEncrypted reads the verifier's client_metadata.jwks,
selects the usable encryption key, and hashes its RFC 7638 thumbprint
(RAW 32 bytes) into the OpenID4VPHandover HandoverInfo. The
verifier-side re-derivation in handle_mdoc_vp_response binds the
SAME thumbprint - the pending's enc_pub_jwk hashes via
sentin8::mdoc::jwk_thumbprint_raw into the third HandoverInfo
member (null only when the wallet chose an unencrypted form). A
thumbprint-less re-derivation desynchronizes every encrypted-cell
device signature.
The mdoc mint rounds its time cluster. The MSO's validityInfo
(signed/validFrom/validUntil) and the issue_date/expiry_date
tdate elements derive from ONE rounded instant (truncated to the
hour), matching the dc+sd-jwt mint's rule. Without the rounding the
suite's VCIEnsureCredentialTimeClaimsNotLinkable /
VCIEnsureBatchTimeClaimsNotLinkable (RFC 9901 / SD-JWT §9.5)
WARNINGed at both the multiple-clients and the batch-issuance cells:
two same-dataset credentials minted moments apart carried a
high-entropy, near-identical time cluster that let a verifier
correlate them.
Discovery advertises every credential scope. scopes_supported
lists the mdoc configurations' scopes (eudi.pid.mdoc.1,
mdl.mdoc.1) alongside the dc+sd-jwt ones. A scope the suite requests
but discovery omits raises
CheckDiscEndpointScopesSupportedContainsRequestedScopes
(RFC8414-2 / OIDCD-3) - it did, for eudi.pid.mdoc.1 on the
vci_haip posture, where the FAPI2 client family runs under the mdoc
cell's scope.
Bootstrap plans are deleted once they have served. The VP
wallet battery mints its test credentials through a bootstrap VCI
wallet plan (oid4vci-1_0-wallet-test-plan): the plan exists only to
run ONE module - ...-test-credential-issuance - against the emulated
issuer, so the holder's vault receives a fresh credential before the
cells run. The plan's other three modules (notification, scopes,
batch issuance) are never meant to run, so its summary reads
1 passed / 3 not run forever. On a certification submission that
reads as an unfinished run: the reviewer sees an oid4vci-1_0-wallet-test-plan
with three "not run" segments and no plan on which every module
reached terminal. The bootstrap plan's lifecycle therefore ends with
DELETE /api/plan/<id> in the spec's teardown - it is scaffolding,
not a certification artefact. The cells' own plans (4 per
oid4vp wallet battery, 3 per VCI wallet battery) stay, because they
are the plans the reviewer certifies.
The DCQL query is ENFORCED at the response endpoint. The verifier
MUST reject a presentation that verifies cryptographically but does
not answer the request's query (OID4VP-1final §6.4 / §6.4.1). Both
presentation branches enforce it against the pending record's
format-pinned DCQL (verifier_dcql_entries):
- dc+sd-jwt: the presented credential's
vctMUST appear in the matching entry'smeta.vct_values, and the presentation MUST disclose at least ONE of the query's requested claim paths (the suite's PID legitimately omits the optionalacr, so requiring every requested claim would reject a conformant presentation - OID4VP's violation is disclosing NO requested claim). A mismatch is the401 invalid_tokenverdict; the suite'swrong-vctnegative module is the regression proof. - mso_mdoc: the presented document's
docTypeMUST equal the entry'smeta.doctype_value, and every DCQL-requested element MUST be disclosed. The suite'swrong-vct/invalid-sd-hashcells and the mdoc trust chain exercise the same seam.
Without this enforcement the verifier accepted any cryptographically
valid credential regardless of what was requested (an authorization
defect a screenshot revealed: the rejection page rendered the honest
verdict "accepted"). The DCQL is derived from the pending record's
credential_format pin, so the creator, the served request object,
and the response-side check share ONE table.
The mdoc pending resolution on the encrypted path. The OIDF
wallet's VP1FinalEncryptVPResponse posts ONLY the form field
response=<JWE> to the response_uri - NO state parameter. The
encrypted branch resolves the pending request by the JWE envelope's
kid alias (the auth:vp:jwekid:{kid} record the creator
registered): decrypt_vp_jwe returns the resolved pending WITH the
opened vp_token, and handle_mdoc_vp_response consumes it directly.
The unencrypted state-carrying wallet flow keeps its resolution
path. The envelope's kid alias clears on decrypt (single-use); the
nonce alias stays registered for the sd-jwt branch's own resolution.
RICAL (ISO/IEC 18013-5 Annex F.3.2). The conformance rig publishes
a Reader Issuer CA List - a COSE_Sign1 (ES256, x5chain label 33) over
a CBOR map whose certificateInfos list the issuance CA as a reader
CA (isTrustAnchor=true, SKI + serialNumber, no trust constraints).
The suite's RicalTrustManager resolves the request object's x5c
chain BY THE LEAF'S AKI against the RICAL entries' SKI - so the
issuance chain carries SKI (CA) + AKI (leaf) + KeyUsage
(digitalSignature on BOTH - the chain walker rejects a signer
without it; the CA also carries keyCertSign/cRLSign), and the
RICAL REPLACES the single request_object_trust_anchor_pem (the
suite rejects a config carrying both). With the RICAL pinned the full
validation chain evaluates: register, parse, COSE signature, signer
certificate, structure (the Annex F.3.2 shape), the request object
chain against the reader CA, and the matched entry's trust
constraints.
9a.28 Front-Channel Logout OP (the former exclusion, closed)
OIDC Front-Channel Logout (FCL) 1.0 - the logout session-signaling channel that sends the user's browser through per-client logout iframes. The platform implements the full OP-side contract:
- Client registration: the DCR/admin surface accepts
frontchannel_logout_uri(https required, no query components per FCL 2/4 - the suite's negative modules reject a URI with a query string) andfrontchannel_logout_session_required(the per-clientsiddemand). The grant row + the admin UI carry both fields. - Discovery:
frontchannel_logout_supported: trueandfrontchannel_logout_session_supported: trueride the discovery document (CheckDiscEndpointFrontchannelLogoutSupported+ the session variant read exactly these). - The logout endpoint: after the RP-initiated logout resolves, the
OP's logout landing page embeds an
<iframe src=per registered client with afrontchannel_logout_uri- the iframe URL carriesiss(the issuer) and, when the client demands it (frontchannel_logout_session_requiredor the client registered a session-bearing logout), thesidof the logged-out session. The iframes ride the OP-hosted logout-done page (a server-rendered page, the same shape as the verifier landing - never the SPA shell). - The
sidclaim: the ID token carriessidfor clients whose registered logout URI requires it (the same session-identifier plane the back-channel logout token uses, §9a.26). - The certification plan
(
oidcc-frontchannel-rp-initiated-logout-certification-test-plan) runs over thecert-fclenv: discovery verification, the frontchannel-logout happy flow (the logout lands the iframes), the session-required negative (a client withfrontchannel_logout_session_requiredmust receivesid), and the bad-logout-uri negative (a URI with a query string is rejected at registration).
Phishing posture. The iframe URLs are EXACTLY the clients'
registered frontchannel_logout_uri values (registered https, exact
string) - the OP never redirects the browser to an unregistered URL,
and the iss parameter lets each RP verify the iframe call's origin
(FCL 5.2). The iframe surface is the spec's own contract; the former
tracking-surface objection is mitigated by the same rules the
specification mandates (https-only, exact-match registration,
no third-party cookies - the iframes are first-party to the OP host).
9a.29 The mdoc credential format - mso_mdoc issuance + iso_mdl presentation (OIDF-ISO-1)
The ISO/IEC 18013-5/-7 closure of the last format exclusion: the
platform issues mso_mdoc credentials under OID4VCI and accepts
iso_mdl presentations under OID4VP. The wire engine is the
platform-shared sentin8::mdoc crate (sdk DESIGN.md §8b) - auth holds
the ROLES, never a second engine (the wallet8 vertical and every
vertical wallet import the same crate through the facade).
The mdoc issuance surface. The issuer metadata carries the
mso_mdoc configurations beside the dc+sd-jwt families: format: "mso_mdoc", doctype (REQUIRED - the suite's
EnsureMdocDocTypeMatchesCredentialConfiguration), cose_key binding,
INTEGER COSE algs (credential_signing_alg_values_supported: [-7]),
the jwt proof type (ES256). The minted credential is the
IssuerSigned structure (unpadded base64url): the MSO binds the
PROOF's key (RFC 7638 thumbprint equality -
VCIEnsureMdocDeviceKeyMatchesProofKey), the namespaces carry the
doctype's mandatory element set from the user's OIDC profile, the
validity window rides tdate (Z, second precision), and the
issuerAuth COSE_Sign1 (alg -7) carries the env's DS certificate as
the x5chain (the HAIP-X5C-1 leaf-matched signing key). The 18013-7
status member is the shared status-list herd pointer
(status_list {idx, uri}). The credential response renders the
credentials array entries with format: "mso_mdoc".
The iso_mdl presentation surface. The verifier's
vp_formats_supported advertises mso_mdoc with INTEGER
issuerauth_alg_values/deviceauth_alg_values (the key name is
mso_mdoc, NOT iso_mdl - the suite's
VP1FinalValidateVpFormatsSupportedInClientMetadata). The DCQL query
carries the mdoc credential entries: meta.doctype_value (the DCQL
meta key - the metadata key doctype differs) + 2-element claim
paths [namespace, elementIdentifier]. The response endpoint accepts
the DCQL object form - vp_token as a JSON object keyed by the
credential id, each value an array of unpadded-base64url DeviceResponse
documents - resolved by the state parameter (the mdoc flow has no KB
JWT; the pending-request alias auth:vp:state:{state} names the
request). The verification chain: the x5chain leaf against the
wallet connection's trusted issuers, the issuerAuth COSE_Sign1
signature, the valueDigests coverage of every disclosed item, the
EMPTY deviceSigned elements (EnsureMdocDeviceSignedElementsEmpty),
and the device signature over the B.2.6.1 session transcript
(["OpenID4VPHandover", SHA-256([client_id, nonce, jwkThumbprint|null, response_uri])]). The outcome mirrors the sd-jwt path: the verifiable
session + the downstream code.
The dc_api response modes. The request-object response_mode
dc_api/dc_api.jwt selects the Digital Credentials API session
channel (OID4VP 1.0 Final App. A): the browser-mediated
requestCredential flow where the wallet posts the authorization
response to the session's submit URL. The dc_api transcript is the
B.2.6.2 form (["OpenID4VPDCAPIHandover", SHA-256([origin, nonce, jwkThumbprint|null])] - origin, not client_id) and the KB JWT's
aud is origin:<origin>. The wallet-role certification cells (the
oid4vp-1final-wallet-haip-test-plan dc_api/dc_api.jwt variants) are
what the wallet8 vertical's reference wallet certifies against.
The wire-level closure the certification cells fixed. The battery
(the oid4vp-wallet family, all four cells green) surfaced the forms
the §9a.29 summary understated, now canonical:
- The vp_token DeviceResponse is the ISO MAP form
(
{version, documents, status}) with the document carryingdeviceSigned.deviceAuth.deviceSignature- a DETACHED COSE_Sign1 whose DA array's 4th element is the TAGGED DeviceNameSpaceBytes (#6.24(bstr(...)), not the decoded map) and whose session transcript rides RAW; the engine contract is sdk DESIGN.md §8b. - The session transcript heads are MINIMAL canonical CBOR - every member the verifier re-derives byte-exactly (the non-minimal 17-char tstr head broke the device signature; the fix lives in the engine, both sides derive one shape).
- The credential trust anchor for the mdoc presentation chain is the
ISSUING IACA of the mint - in the certification cells the suite's
mock issuer mints under its own IACA (served at
/mdoc-iaca-root.pem), so the wallet-side config names THAT root as the top-levelcredential_trust_anchor_pemtest-config member (the chain validator reads env keycredential_trust_anchor_pem; the VICAL path takes precedence when a VICAL is configured). - The response-encryption JWK in
client_metadata.jwksmay omituse- the encrypted-handover form still covers it (the B.2.6 HandoverInfo thumbprint rule, sdk DESIGN.md §8b). - The 6.4.1 disclosure rule: the wallet releases exactly the DCQL
selected claim paths, and a claims-LESS DCQL query releases
NOTHING (the claims filter lives in the engine's
filter_issuer_signed, sdk DESIGN.md §8b).
9a.30 The skip-closure surfaces (CLAIMS-A) - the missing-claims inventory
Source: missing-claims.md - the full extraction over the battery's
874 module logs (7,815 Skipped evaluation INFO entries). Category A
(the ~3,000 real platform gaps) closes here in seven surfaces, each
keyed to the OIDF conditions it arms. The harness/registration items
(Category B) belong to the rig; the variant conditionals (Category C)
are the suite's own skipIf gates - not platform work.
9a.30.1 The client-attestation challenge endpoint (challenge_endpoint, A1 - 1,224 items)
The HAIP client-attestation flow (OAuth2-ATCA07-8) needs the
challenge bootstrap. Spec source: draft-ietf-oauth-attestation-based-
client-auth-12 §6.3 (the challenge endpoint), §7.4 (the error
contract), §15.2 (the challenge_endpoint metadata registration).
- Route:
POST /oauth/attestation-challenge- the spec's request method is POST (§6.3: "A request for a Challenge is made by sending an HTTP POST request"). Unauthenticated by design: the endpoint is a nonce fountain; enforcement is the PoP re-check at the token family. - Response:
200 application/json+Cache-Control: no-store(§6.3 MUST) with the single REQUIRED memberattestation_challenge: "<uuid>"(§6.3's exact response parameter name - NOTchallenge; the suite's unknown-field check rejects extra members). The record's lifetime is the valkey TTL (300s); noexpires_inmember (the spec permits additional data but the suite's response-shape check is strict). - Challenge lifecycle: a Valkey record
auth:attestation:challenge:{challenge}(TTL 300s) storing the requestingclient_id(from the attestation JWT'ssub, best effort) - the PoP verify path (§7.2 rule 5) gains the challenge branch: a PoP carrying achallengeclaim MUST resolve to a live record (unknown/expired = reject), consumed single-use (GETDEL); a record bound to a different client_id is rejected. A PoP with NO challenge claim passes untouched (the claim is OPTIONAL per §5.1 - the platform's local policy, §6: challenges are accepted when present, not mandatory). - Error contract (§7.4): when the PoP's challenge fails
verification, the token endpoint answers
400witherror: use_attestation_challenge+ a FRESH challenge in theOAuth-Client-Attestation-Challengeresponse header - the spec-true retry path a certified client expects. The bare401 invalid_clientstays only for the non-challenge failure surfaces (typ/aud/signature).
9a.30.2 SD-JWT VC type metadata (A2 - 1,088 items)
SDJWTVC-6.x/7/9 (draft-ietf-oauth-sd-jwt-vc-12): a vct value that
is an HTTPS URL resolves to its Type Metadata document by GET (§6.3.1);
the vct#integrity claim carries the W3C-SRI sha256-<base64> hash.
- vct as a URL: the credential configurations'
vctbecomes the platform's HTTPS type-metadata URL ({issuer}/oauth/vci/vct/{slug}- e.g..../oauth/vci/vct/eudi-pid-1), which is what the suite'sVCIFetchSdJwtVcTypeMetadatafollows. (The historical URNurn:eudi:pid:1remains an ecosystem alias inside the document and the minted credential's semantic identity; the URL form is the retrieval addressable.) - Route:
GET /oauth/vci/vct/{slug}-200 application/jsonwhen the slug matches a configured credential family;404otherwise. The document is served cacheable (the platform's TLS + the issuer signature over the credential carry the trust; §6.3.4 allows indefinite caching when integrity is pinned). - Document structure (§6.2 exactly):
vct(the URL - REQUIRED),name,description(OPTIONAL),extends(absent - the base PID type extends nothing; a circularextendsis forbidden §10.3),display(array of{locale, name, description}objects -localeREQUIRED per §8),claims(array of{path, display, mandatory, sd, svg_id}entries - the draft's EXACT claim-metadata property names, §9:sd∈always|allowed|never(the selective-disclosure flag; RECOMMENDEDalways/neverper §9.4),mandatoryboolean (§9.3),paththe non-empty claim-path array (§9.1),displayper-claim locale objects with REQUIREDlabel(§9.2)). - Single source (no drift): the
claimsarray is GENERATED from the same claim catalog the mint uses - every disclosable claim the minted PID carries (given_name,family_name,birthdate,address.*,nationalities, ...) gets its entry withsd: "always"(matching the mint's actual selective disclosure) andmandatory: truefor the claims every PID carries. - Integrity (§7): the credential's
vct#integrityclaim carriessha256-<standard-base64 of the SHA-256 over the served document>; the served bytes are deterministic (one JSON serialization), so the minted credential pins the hash and the suite'sVCIVerifyTypeMetadataIntegrity(SDJWTVC-9.5) verifies it against the fetched document.
9a.30.3 RFC 9396 authorization_details echo (A3 - 496 items)
OID4VCI-1FINAL-6.2/5.1.1, RFC9396-7: the authorize request's
authorization_details (already parsed, validated, and PAR-stored)
must survive to the token response as the authorization_details
member, with credential_identifiers per the OID4VCI conventions.
- Code record: the valkey
auth:authcode:{code}payload gainsauthorization_details(verbatim, already-validated) - the code is the state carrier between authorize and token. - Token response:
TokenResponsegainsauthorization_details: Option<Value>(skip_serializing when absent - the plain OIDC families see no change) + the derivedcredential_identifiersper detail whosetypeisopenid_credential:[{"credential_configuration_id": <the detail's "credential_configuration_id" or the type's id>}]- STABLE across token responses (the suite'sVCIEnsureCredentialIdentifiersUnchangedAcrossTokenResponsescompares the code-flow response with the deferred/batch re-issuance response - both derive from the same code record). - The CIBA and device paths ride the same details (stored in the CIBA/device record at request time).
9a.30.4 The credential endpoint's FAPI interaction-id echo (A4 - 64 items)
FAPI2-IMP-2.1.1: the OID4VCI credential (resource) endpoint
response carries x-fapi-interaction-id - echoing the request's
header value, or a fresh UUID when absent. The userinfo surface
(userinfo_json) already implements exactly this pattern; the
credential endpoint's response construction gains the same pair
(echo-or-fresh) on BOTH the success and the deferred-credential
response paths.
9a.30.5 Discovery: userinfo_signing_alg_values_supported everywhere (A5 - 15 items)
The advertisement exists today only for the non-FAPI profiles
(if profile.require_par || require_mtls -> None). The FAPI plans'
FAPI2CheckDiscEndpointUserinfoSigningAlgValuesSupported /
FAPICheckDiscEndpointUserinfoSigningAlgValuesSupported run when the
member is PRESENT: the list becomes unconditional
([active_signing_alg, "ES256", "PS256", "none"]) - an empty
response set is a discovery lie; the honest list is the family the
OP actually signs with. (The FAPI none question does not arise -
none is listed because the signed-userinfo family's plain cells
register it; FAPI never REQUESTS none.)
9a.30.6 Discovery: acr_values_supported (A6 - 8 items)
acr_values_supported: ["urn:certification:idp:aal1"] (the value
the id_token's acr claim actually carries - the certification
profile's achieved context, §9a.11) - advertised unconditionally:
the claim's emitted value must be discoverable
(FAPICIBAValidateIdTokenACRClaims resolves it).
9a.30.7 The verifier request object's verifier_info + PKCE (A7 - 65 items)
OID4VP-1FINAL-5.1 + RFC7636-4.3: the OID4VP verifier's signed
request objects (the /v1/auth/verifier/request creator in
wallet.rs) gain two members the suite's extraction conditions
require:
verifier_info(SIOPv2clientmetadata object): the verifier's human-facing identity -{"name": "Sentin8 Verifier", "purpose": ["identity presentation verification"], "logo_uri": null-omitted}- inserted at the request object's top level next toclient_metadata(the suite'sExtractVerifierInfoFromAuthorizationRequest+ValidateVerifierInfo+ the unexpected-parameter check).code_challenge+code_challenge_method: "S256": the verifier's authorization-code-flow leg (the request object rides the wallet's authorize round-trip; the code_challenge binds the eventual token exchange). The verifier generates a fresh PKCE pair per request; the challenge's verifier lives in the pending record (valkey) and the eventual token exchange verifies it (the suite'sEnsureAuthorizationRequestContainsPkceCodeChallenge).
9b. In-process rig mirror - the coverage map
sentin8-auth-oidf (the §9a.2 harness) is the truth for what the OIDF
certification campaigns exercise; every profile plan's module families map
to the in-process tests below. Campaign rules carried into the suite:
no-skip (every capability the discovery document advertises must
behave - §9a.10) and warning-zero semantics (each assertion asserts
the ROOT behavior a suite WARNING would surface - §9a.11).
| Profile plan (suite) | Module family / rule | Test layer (tests/) |
|---|---|---|
oidcc-basic-certification-test-plan | prompt=none/login, max_age, scope→claims, userinfo GET/POST both, session-less authorize | oidf_flows.rs + conformance.rs (conf_prompt_none_silent_authentication) |
| - (Basic, §9a.11/) | ID-token claims ride the §5.5 claims SELECTION only; acr_values echo; code 60s lifetime + burned-code revocation cascade | oidf_flows.rs |
| - (§9a.4 honesty) | discovery ↔ behavior parity (advertised algs/methods ARE verifiable; S256-only; claims/scope families served) | oidf_flows.rs + conformance.rs (conf_discovery_advertisement_matches_behavior) |
oidcc-config-certification-test-plan | discovery completeness block (CIBA + backchannel-logout + claims params) | oidf_flows.rs (oidf_config_discovery_completeness) |
oidcc-dynamic-certification-test-plan | RFC 7591 DCR: invalid_redirect_uri (fragment), invalid_client_metadata (bad sector), metadata persistence (id/userinfo alg, subject_type pairwise), RFC 7592 COALESCE update + delete 204; WebFinger | oidf_flows.rs + conformance_profiles.rs |
oidcc-rp-initiated-logout-certification-test-plan | state echo on registered landing; unregistered → the error PAGE (§9a.23); id_token_hint verification; no-hint fallback | oidf_logout.rs + sec_auth2.rs (sec_auth2_logout_redirect_allowlist) |
| (Back-Channel Logout) | logout token shape: events+sid, no nonce; fan-out POST | backchannel_logout.rs unit tests + oidf_logout.rs |
fapi2-security-profile-final-test-plan (dpop/mtls cells) | PAR+DPoP pre-binding (§9a.21), jkt mismatch → invalid_dpop_proof (§9a.22), require-DPoP gate + cert substitute, userinfo exactly-one-proof (§9a.22), hybrid response-type rejects, JARM-wrapped vs plain-query error channels (§9a.16(h)/9a.22), FAPI response_mode=query reject, refresh unconditional (OC-27b) | oidf_fapi.rs (fapi_2 profile row + required_flags) |
fapi1-advanced-final-test-plan | request-object mandates exp/nbf/nonce + alg-none forbidden (§9a.14), code↔jwt pairing, permissive assertion-aud forms (alias/PAR/token/issuer array), presented-cert cnf binding (§9a.12), s_hash | oidf_fapi.rs (fapi_1_advanced) + conformance.rs |
fapi2-message-signing-final-test-plan | strict-aud (issuer-exact assertion, §9a.16(b)), PAR unsigned-push reject (§9a.16(g)), JAR freshness mandates (§9a.16(f)), PS256 accepted (§9a.16(d)), RS256 request-object reject | oidf_fapi.rs (fapi_2_message_signing) |
fapi-ciba-id1-test-plan (poll/ping cells) | signed request object mandatory + claim validation (CIBA §7.1 §9a.15), exactly-one-hint, poll auth_req_id single-use/expiry, binding_message enforce, ping notification contract | oidf_fapi.rs (fapi_ciba row) + ciba.rs unit tests |
oid4vci-1_0-issuer-test-plan | metadata (credential_configurations_supported + nonce/batch), §8.1 nonce first-proof GETDEL, unknown config/identifier errors (§7.4 shape), batch N→N, invalid proof | oidf_vci.rs + oid4vci.rs unit tests |
oid4vci-1_0-issuer-haip-test-plan | OAuth-Client-Attestation(+PoP) auth: trust-anchor pin, iss/sub/expiry checks, PoP jti replay, discovery attestation advertisement (§9a.19), credential-response ECDH-ES encryption, HAIP refresh-token module (OC-27b posture + ATCA §10.3 instance-key binding, §9a.19), two-line DPoP negative on the credential surface (§9a.19 wire path) | oidf_vci_haip.rs + client_attestation.rs/jwe.rs unit tests |
oid4vci-1_0-wallet-test-plan | credential-offer landing → authorize redirect state echo (VCIVerifyIssuerStateInAuthorizationRequest, §9a.20) | oidf_vci.rs |
| Cross-plan | the alias-serialization/no-state-change rules and suite-driver specifics stay HARNESS-ONLY (fixtures/runner.ts) - not server behavior. | (deliberately not mirrored) |
Deliberate suite-side sanctions the mirror does NOT reproduce (client /
rig artifacts, not server behavior - the rig spec files document them):
the two-visit/review screenshot placeholder mechanics. The SERVER-side
negative each of those hides IS mirrored (ensure_signed_request_object *, userinfo multiple-DPoP 400, FAPI unconditional refresh). The three
FORMER sanctions are CLOSED: the sentin8-tls middleware preserves the
two-line DPoP shape so the reject is observable at the wire (the
collapse was SDK-side, not JVM-side); the vci_haip posture rides the
OC-27b unconditional-refresh rule - the suite runs the refresh module
to green with no bless; and the CIBA RS256-negative cells RUN (the
seed's CIBA clients are RSA-PS256-keyed so the suite's keys[0].alg gate
no longer skips - §9a.15's alg mandate covers the poll assertion).
10. Route Inventory (protocol-family grouped, spec-anchored)
The authoritative, machine-checked list is the router (src/server.rs) +
the drift guard. This table adds the RFC/spec anchor per family - each
link resolves in §12.
| Family | Routes | Spec anchors |
|---|---|---|
| Discovery | /.well-known/openid-configuration, /.well-known/oauth-authorization-server, /.well-known/jwks.json, /.well-known/webfinger, /.well-known/openid-credential-issuer, /.well-known/openid-credential-verifier, /openapi.json | OIDC Discovery §2/§3, RFC 8414, RFC 7517, RFC 7033, OID4VCI §11.2, OID4VP §11 |
| Authorization | /oauth/authorize (GET), /oauth/authorize/continue, /oauth/login (GET+POST), /oauth/par (POST), /oauth/vp/request/{id} (GET+POST), /oauth/vp/response (POST), /wallet-verifier/done (GET - the OP-hosted verifier success page), /v1/auth/verifier/request (POST), /v1/auth/wallet/metadata (GET) | RFC 6749 §4.1, RFC 7636, RFC 9126, RFC 9101, JARM, OID4VP §5, OID4VCI §13.3 |
| Token / introspection / revocation | /oauth/token, /oauth/introspect, /oauth/revoke, /mtls/oauth/token, /mtls/oauth/revoke | RFC 6749 §3.2/§6, RFC 7662 + RFC 9701, RFC 7009, RFC 8705, RFC 8693, RFC 8628 (incl. /oauth/device+/device/verify), CIBA poll grant |
| Userinfo / logout | /oauth/userinfo (GET+POST), /oauth/logout, /oauth/backchannel-logout | OIDC Core §5.3.1, OIDC RP-Initiated Logout, OIDC Back-Channel Logout |
| Session | /oauth/check-session (GET), /oauth/check-session/iframe | OIDC Session Management §3.3 (§9a.26) |
| CIBA | /oauth/bc-authorize, /v1/ciba/{approve,assisted/*} | CIBA §4-§7, RFC 7523 |
| Grants | /oauth/grants, /oauth/grants/{id} (GET/PATCH/DELETE) | FAPI 2.0 Grant Management |
| DCR | /oauth/register, /oauth/register/{client_id} (GET/PUT/DELETE) | RFC 7591, RFC 7592 |
| OID4VCI | /oauth/credential, /oauth/deferred_credential, /oauth/nonce (GET+POST), /oauth/notifications, /oauth/credentials, /oauth/credentials/issue, /oauth/credentials/status/{id}, /oauth/credentials/revoke/{id} | OID4VCI §7-§13, Status List, SD-JWT VC §5 |
| Identity | /v1/sign-in|up|out, /v1/session, /v1/branding, /v1/password/reset(+confirm), /v1/email/verify(+confirm), /v1/mfa/*, /v1/passkey/*, /v1/me/app-passwords | RFC 6238, RFC 4648, WebAuthn |
| SSO federation | /v1/sso/{id}/authorize|callback, /v1/saml/metadata|acs/{id} | OIDC Core (federation), SAML 2.0 |
| SCIM | /scim/v2/Users[/{id}], /scim/v2/Bulk, /scim/v2/Groups, /scim/v2/ServiceProviderConfig, /scim/v2/ResourceTypes | RFC 7643 + RFC 7644 (Bulk §3.7) |
| Admin / Shield / security | /v1/admin/* (+SDUI UI), /v1/admin/policy-sets[...], /v1/admin/{relations,attributes}, /v1/security-profile, /v1/admin/security[...] | Shield policy plane; SDUI (platform §4.15) |
| Internal | POST /v1/internal/keys/rotate | cron proxy-back, §8 |
| Edge middleware | route_guard (admin backstop), token_no_store_middleware | RFC 6749 §5.1, RFC 7662 §4, RFC 8705 §5 |
11. Key & Signature Strategy (per-profile)
| Concern | Rule | Spec anchor |
|---|---|---|
| Key families | ["MLDSA65","RS256","ES256"]; signing = ML-DSA-65 (PQ exclusive default) or RS256 (classical); ES256 verification-only | RFC 7518, ML-DSA (COSE/JOSE drafts) |
| Rotation | insert-new-key overlap; daily timer 30-day staleness gate + cron proxy-back force bypass | RFC 7517 (all keys in the set during overlap) |
| At-rest encryption | AES-256-GCM under the platform master key; wrong key refuses boot | secret-references-only rule |
| Per-tenant publication | JWKS endpoint is env-FAMILY filtered via the resolved security profile | OIDC Core §3.1.3.7 |
| Proof types | ES256 JWS for wallet proofs (raw r‖s), RS256 for client assertions, PS256 (RSASSA-PSS) supported verify side | RFC 7515, RFC 7518 §3.5, RFC 7638 |
12. Standards Reference Register
Every standard the service implements, with links. §-numbers in the sections above refer to these documents.
Core OAuth 2.0 family (IETF)
| Spec | Title | Anchor | Where in auth |
|---|---|---|---|
| RFC 6749 | The OAuth 2.0 Authorization Framework | §3-§6 (endpoints/grants), §5.1 (no-store), §5.2 (auth errors), §10.4 (stuffing) | everything under /oauth/* |
| RFC 6750 | Bearer Token Usage | §2.2 (verification) | bearer extraction and verification |
| RFC 7009 | Token Revocation | §2.1 | /oauth/revoke + grant cascade |
| RFC 7636 | PKCE | §4.1-§4.6 | S256-only code challenges |
| RFC 8628 | Device Authorization Grant | §3.1-§3.5 | /oauth/device, /device/verify |
| RFC 8693 | Token Exchange | §2.1/§4.1 | grant_type=token-exchange, delegation.rs |
| RFC 9126 | Pushed Authorization Requests | §2-§4 | /oauth/par |
| RFC 9101 | JWT Secured Authorization Request (JAR) | §4-§5 | jar.rs request objects |
| RFC 9207 | Authorization Server Issuer Identification | §2-§3 | iss response parameter |
| RFC 9396 | Rich Authorization Requests | §2 | authorization_details |
| RFC 8707 | Resource Indicators | §2/§3 | resource → audience |
| RFC 9449 | DPoP | §4-§7.2 | dpop.rs; DPoP scheme on userinfo/credential |
| RFC 8705 | mTLS Client Auth + Certificate-Bound Tokens | §2-§5 | mtls.rs, /mtls/* aliases, cnf.x5t#S256 |
| RFC 9421 | HTTP Message Signatures | §2 | http_signatures.rs (FAPI2-MS) |
| RFC 9530 | HTTP Message Digest Fields | §2 | content digests for signatures |
| RFC 9701 | JWT Introspection Response | §3-§4 | signed introspection |
| RFC 7662 | Token Introspection | §2.1-§4 | JSON introspection + no-store |
| RFC 7515 | JWS | §4/§5 | all token signing |
| RFC 7517 | JWK / JWK Set | §4 | /.well-known/jwks.json |
| RFC 7518 | JWA | §3.4/§3.5 | RS256 + PS256 |
| RFC 7523 | JWT Client Authentication | §2-§3 | private_key_jwt client assertions |
| RFC 7638 | JWK Thumbprint | §3 | cnf.jkt (DPoP) |
| RFC 8414 | AS Metadata | §2-§3 | /.well-known/oauth-authorization-server |
| RFC 7033 | WebFinger | §4-§10 | webfinger.rs |
| RFC 8252 | OAuth for Native Apps | §2.1/§7/§8.1 | loopback + custom-scheme redirects |
| RFC 7591 | Dynamic Client Registration | §2-§3/§5 | dcr.rs register |
| RFC 7592 | DCR Management | §2-§5 | dcr.rs manage |
| RFC 6819 | OAuth 2.0 Threat Model | §4.1.6/§4.4/§4.5.2 | request injection, credential theft, stuffing |
| RFC 9436 | Identity Chaining | reference | delegated-identity framing |
| RFC 5280 | X.509 PKI | §4.1 | x5c leaf cert walk (key attestation) |
| RFC 6238 | TOTP | §4/§5.1 | mfa.rs |
| RFC 4648 | Base32/64 | §6 | TOTP secret encoding |
OpenID Foundation specs
Workforce / enterprise
| Spec | Link | Where in auth |
|---|---|---|
| SCIM 2.0 Core Schema | RFC 7643 | user/group schema |
| SCIM 2.0 Protocol | RFC 7644 | /scim/v2/* incl. Bulk §3.7 |
| SAML 2.0 (metadata/ACS) | OASIS SAML v2.0 | enterprise connections |
| ISO/IEC 18013-5 (RICAL) | ISO/IEC 18013-5:2021 Annex F.3.2 | verifier request-object chain trust (§9a.27) |
13. Open Questions
- Continuous access evaluation: session/token revocations already push
sentin8:auth:session:revokedto the BFF session-reaper so cached sessions die immediately; risk-signal gating of NEW token issuance is the next layer on top of live authorization. - Hardware-backed key attestation: the WebAuthn
attestationconveyance preference is the seam; the OID4VCI App. D attestation verify accepts software-key attestations today (x5c self-consistency); trust anchoring beyond that is an issuer policy. - Handshake-level certificate revocation and Valkey ACLs are platform-level follow-ups owned outside this service.
- Multi-region active-active issuer deployment is a non-goal until multi-region exists; the JWKS overlap-rotation design is region-safe.
- SCIM
/Bulkis live (RFC 7644 §3.7): a thin wrapper over the per-user SQL paths (≤100 ops;failOnErrorsstops the batch). The precondition consumer exists - BFF's delegated SCIM proxy is the enterprise IdP path.
Architecture & Design: sentin8:auth and its underlying concepts were designed by Hamid Jahanzad.