Skip to main content

Sentin8:Auth - Detailed Design Document

Audience: maintainers, reviewers, and architects modifying the service. For the overview read README.md; for the functionality read BUSINESS.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_sets is 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_request returns 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_id for direct RLS; role_nesting gated 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), and actor_revocations (USING (true) - revocation is jti-scoped, not env-scoped). Context setting is async + .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_cipher BYTEA / 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-memory StoredKey PEM 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 (no jwk member - the suite's VCIDecodeSignedCredentialIssuerMetadata hard-fails) and the verifier request object to no EC PEM material.
  • OIDC claim data (§9a.4): the users table carries phone and 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 consented phone/address scopes. The OIDC address claim 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. The sentin8:sys:admin role's OWN permissions are exactly ['sentin8:sys:admin'] (the is_platform_admin marker 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:

AudienceGroupGate
public/.well-known/*, /oauth/* protocol endpoints, /v1/sign-in|up|out, /v1/healthsession/cookie or client auth per flow; bot protection + lockout on sign-in (RFC 6749 §10.4)
identifier-firstPOST /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)
devicePOST /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/revokecert-presence guard (RFC 8705 §5)
workloadPOST /oauth/register (DCR, RFC 7591)interactive clients open; client_credentials-only requires mTLS cert scope-proof (§8)
delegatedPOST /delegate/access-tokenverified 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 UIroute_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 emits sentin8: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 emits sentin8: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.jkt on access tokens; dpop_exempt per-client flag. mTLS (RFC 8705): cnf.x5t#S256 cert-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 locked status (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).
  • Introspection honesty: none-auth clients hard-rejected; application/token-introspection+jwt signed 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, NO nonce (per spec), fan-out exactly to the registered backchannel_logout_uri clients the destroyed session logged in (session_clients); session_state is minted on every interactive authorize, served live through the check_session endpoint + iframe shim, and RP-initiated logout revokes the OP session so the next poll answers changed. DCR + client management accept and echo backchannel_logout_uri, backchannel_logout_session_required, and an https initiate_login_uri (§9a.26).
  • No-store on token endpoints (RFC 6749 §5.1, RFC 7662 §4, RFC 8705 §5): middleware enforces no-store/no-cache on /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:

ConsumerWas (token claim)Now (map field)
Shield RequestCtx (scope-gated rules)scopescopes (roles: none - M2M workloads never had role assignments)
Bus event-ownership gateverticalvertical (produce + consume identity checks)
Audit service stamp / Sys tenant-snapshotsub (opaque hex) / service_typeCN 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:workloads itself 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-issuance sub == service_name; the enroll operator scope).
  • The TLS-injected headers are trustworthy because (a) sentin8-tls injects 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_clients and DCR survive for interactive clients (auth-code, device flow, BFF apps, dash) and out-of-band tenant clients (client_secret_basic/private_key_jwt per 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_grants directly (§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 cached client_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-post TokenSource is resolved once and reused across passes; a 401 triggers the m2m crate's single-flight self-heal - never a per-pass register_or_load_m2m_client rebuild (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​

  1. Single identity plane - no other service mints tokens/JWKS; the provisioning API is the only cross-service write path to auth.*.
  2. M2M is certificate-bound by default (RFC 8705) - a stolen token without the key is useless; DCR for client_credentials requires the mTLS cert channel (no dev fallback).
  3. scope is not the decision - handlers never re-check scopes; step 5 resolves live identity (§5 pipeline).
  4. Refresh rotation + jti denylist (FAPI-mandated rotation) - replay within TTL is detectable; fail-open only on cache outage (expiry predicates backstop).
  5. No existence oracle - uniform invalid_client; dummy bcrypt on unknown accounts.
  6. Tenant-scoped uniqueness - emails/roles/groups unique per (env_id, …); sessions carry token_id UNIQUE.
  7. Actor tokens are time-boxed and audited - TTL clamp ≤ 3600s, auth.actor_events + jti revocation table.
  8. Keys persisted + encrypted; wrong/rotated master key refuses boot.
  9. No unsafe in the service; manual ML-DSA-65 signing wrapped in the crypto provider boundary.
  10. No per-pass identity churn. Long-lived background pushers bind their M2M TokenSource for the process lifetime (§7).
  11. 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.
  12. Auth reads sys.app_instances only through Sentin8:App's owner API (no cross-schema grants).
  13. 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.
  14. Uniform HTTP error shapes on OAuth endpoints (RFC 6749 §5.2) - client-auth failures return 401 invalid_client with a single JSON body shape; protocol errors never leak method-oracle detail.
  15. RFC 9207 issuer parameter enforced end-to-end. iss rides the authorization response when the profile demands require_iss AND is validated to echo the discovery issuer.
  16. 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.
  17. MFA enforcement is session-status, not cookie-delivery (MFA-SYNC): a session row for a TOTP-enrolled user exists as pending_mfa and no session-authenticated surface accepts it until /v1/mfa/verify flips it to active. The pre-MFA token id is a capability to complete MFA, never a session.
  18. Device approval requires a fully-authenticated session (RFC 8628 §3.3 + §5): /device/verify rejects pending_mfa sessions (401), stamps the approving user_id/env_id from the session (never the body), and supports BOTH approve and deny.
  19. Device grants are client-constrained: POST /oauth/device rejects a client whose grant_types lacks 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 originating client_id (mix-up defense).
  20. Device codes are single-use and TTL-bounded (900s): both Valkey keys (device_code, user_code) are deleted at token issuance; the authorization response carries Cache-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-oidf is 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 is cargo 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 familyCatalog cells (the full matrix)Suite posture
OIDC CoreBasic OP, Config OP, Dynamic OPcode flow + discovery + DCR; the response-type families below carry the other flows
OIDC LogoutRP-Initiated Logout, Back-Channel Logout, Back-Channel + RP-Initiated (joint)both endpoints + the sid-bound fan-out (§9a.26)
OIDC Front-Channel LogoutFront-Channel Logout OPfrontchannel_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 ManagementSession Management OP, Third-Party-Initiated Login OPcheck_session_iframe + session_state + initiate_login_uri (§9a.26)
OIDC Response modesImplicit OP, Hybrid OP, Form-Post OPfragment + form_post channels per certification env (§9a.25)
FAPI 1 Advanced (final)ALL 8 cells: client_auth_type (mtlsprivate_key_jwt) x fapi_auth_request_method (plain
FAPI-CIBAPoll w/ MTLS, Poll w/ Private Key, Ping w/ MTLS, Ping w/ Private Keybc-authorize + both delivery modes, both client-auth families (§9a.14)
FAPI 2 Security Profile (final)ALL cells: sender_constrain (mtlsdpop) 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:

  1. Suite stack - the OIDF docker-compose-prebuilt.yml (mongo + server + nginx) runs under .tmp/conformance/ with BASE_URL=https://localhost.emobix.co.uk:8443, pinned via IMAGE_TAG; localhost.emobix.co.uk resolves 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-tls mints conformance-suite-server.crt/.key (CN conformance-suite, SAN localhost.emobix.co.uk), make conformance-up copies 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).

  2. 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 aliasprofile
    certsentin8-localstandard
    cert-fapi2sentin8-fapi2fapi_2
    cert-f2msentin8-f2mfapi_2_message_signing
    cert-fapi1sentin8-fapi1fapi_1_advanced
    cert-cibasentin8-cibafapi_ciba
    cert-vcisentin8-vcivci
    cert-haipsentin8-haipvci_haip

    The seed (conformance-seed.sh) parameterizes the env slug + alias (CONFORMANCE_ENV_SLUG / CONFORMANCE_ALIAS, deriving auth.<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 flat seed-out.txt keys (client_id(basic)) would collide across envs. Platform-side NOTHING changes: the profile resolves per-request from X-Sentin8-Env-Id (TLS host-context resolve → sys.environments by 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 one extra_hosts line 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 (env cert, alias sentin8-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_DOMAIN comes from the tree .env like 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-conformance refuses to boot if the rig override file carries SENTIN8_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, with CONFORMANCE_ACME_UPSTREAM_URL) - hostnames ENROLLED as external relay 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 .env source 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 from SENTIN8_DOMAIN (the compose extra_hosts entries carry the CURRENT suffix only - generated from the family table, no per-suffix hardcode). Ingress reachability: the internal mode needs no inbound path. The upstream mode 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-provided netsh portproxy reconciled to the live VM IP (the group repo's scripts/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).
  3. 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.

  4. 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 callback https://localhost.emobix.co.uk:8443/test/a/{alias}/callback.

  5. Browser automation - the suite's browser-interaction tests are driven with a scripted test user (the harness in sentin8-auth-oidf/).

  6. 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_URL absent) 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​

CapabilityStatusSpec anchor
Discovery (/.well-known/openid-configuration)implementedOIDC Discovery §3 + §9a.4
Basic OP (code + PKCE S256, ID token with nonce/auth_time/at_hash/c_hash/s_hash)implementedOIDC Core §3.1
OIDC scope-based claims (email/profile/phone/address)implementedOIDC Core §5.4
Config OP (discovery completeness)implementedOIDC Discovery + Core
Dynamic OP (DCR + management + WebFinger)implementedRFC 7591/7592 + Discovery §2.1
RP-Initiated LogoutimplementedOIDC RP-Initiated Logout
Back-Channel LogoutimplementedOIDC Back-Channel Logout
prompt=none/login/consent + max_age re-authimplementedOIDC Core §3.1.2.1
FAPI 2 Security Profile (PAR + DPoP + JARM + iss + rotation)implementedFAPI 2.0 SP + RFC 9126/9449/9207
FAPI 2 Message SigningimplementedFAPI 2.0 MS + RFC 9421 + RFC 9701
FAPI 1 Advanced (PAR + JAR + mTLS + JARM + iss)implementedFAPI 1.0 Advanced + JARM s_hash
FAPI-CIBA poll modeimplementedCIBA §5.2
FAPI-CIBA ping modeimplementedCIBA §5.3
OID4VCI issuerimplementedOID4VCI §7-§13
OID4VP verifier (DCQL + direct_post.(jwt) + x509_hash + RICAL)implementedOID4VP §11 + §5 (§9a.27)
Session Management OP (check_session + session_state)implementedOIDC Session Management §3.3 (§9a.26)
Third-Party-Initiated Login OP (initiate_login_uri)implementedOAuth-R metadata (§9a.26)
Implicit OP + Hybrid OP + Form-Post OPimplemented (profile-gated envs)OIDC Core §3.2/§3.3 + Form Post Response Mode (§9a.25)
eKYC-IDA (claims / verified_claims)implementedeKYC-IDA §5.5 + §5
JAR request_uriimplementedRFC 9101 §5
CIBA signed request objectsimplementedCIBA §7.1
OID4VCI issuance nonceimplementedOID4VCI Final §8.1
Status listsimplementedStatus 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_supported is the OIDC base (openid profile email phone address offline_access) PLUS the OID4VCI credential scopes (the issuer's native credential:* configurations) and the OIDF wallet-catalog scopes (eudi.pid.1 family, openid.example.cert.1) the wallet plan drives - every scope advertised is mintable end-to-end (the §9a.10 no-skip rule). claims_supported lists 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 when private_key_jwt is advertised - RFC 7591 §2)
  • claims_parameter_supported: true + claims_supported
  • backchannel_logout_supported: true + backchannel_logout_session_supported
  • OIDC Session Management: check_session_iframe on every interactive profile; session_state on 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, plus urn:openid:params:grant-type:ciba in grant_types_supported
  • OAuth 2.1 posture: code_challenge_methods_supported is S256 only; 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.

  1. Start the platform in the rig posture (make start-conformance) and make conformance-up.
  2. make conformance-seed - provisions the certification tenant (org conformance-local, env cert, test user, suite clients via DCR with the suite callback) through the platform API only. The profile-per-env battery uses make 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.
  3. 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.
  4. Run each test; the suite's browser automation completes sign-in via the HTML login page (§9a.8) with the seeded test user.
  5. All tests must be PASSED / WARNING / REVIEW (no FAILED, no INTERRUPTED, and no SKIPPED - §9a.10).
  6. Export logs to .tmp/conformance/results/, then make 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:

  1. Suite base is configuration. fixtures/env.ts derives SUITE_BASE from CONFORMANCE_SUITE_URL (default = the rig value, today's behavior bit-for-bit). The hosted target needs no suite stack at all - make conformance-up is skipped; only the platform fleet (make start-conformance, public rig domain mode) + the seed run.

  2. 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 bare JSESSIONID. SuiteApi carries the token strategy when CONFORMANCE_SUITE_TOKEN is set (Authorization: Bearer on every call) - one code path serves both targets because the rig's devmode filter coexists with the resource-server chain.

  3. 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/token under 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).

  4. Callbacks move with the suite base. suiteCallback() derivation already builds /test/a/<alias>/callback from SUITE_BASE; the seed's CALLBACK resolves 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 - the public rig 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 sends https://www.certification.openid.net/test/a/<alias>/callback, the OP correctly refuses it and PAR answers 400 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.

  5. 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.

  6. 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 with format/scope/ cryptographic_binding_methods_supported/ credential_signing_alg_values_supported/vct and proof_types_supported.jwt incl. 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_nonce error 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.1 credential_identifier (references a credentials row previously issued to the caller - unknown ids reject 400 unknown_credential_identifier; unknown configuration ids reject 400 unknown_credential_configuration). Configuration resolution happens BEFORE the scope check; the access token must then carry the configuration's advertised scope. Proofs map {"jwt":[...]} with the draft-11 single proof accepted (one-of); N proofs mint N credentials (§7.3) sharing ONE status list with random distinct indices (herd privacy). Sender-constrained tokens ride Bearer/DPoP schemes: 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 -tls m2m 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 BOTH cnf.x5t#S256-bound and cnf.jkt-bound tokens without the caller holding the mint key (DPoPRS-1).
  • Proof verification (wallet key binding). The openid4vci-proof+jwt carries its key in the JWS header jwk (or the draft-11 payload cnf.jwk); aud = issuer, iat fresh (±5 min). When the configuration requires key attestation (App. D), the proof header's key_attestation JWT (typ key-attestation+jwt) must itself verify: its signing key is read from EXACTLY ONE trusted source - the attestation's inlined jwk header 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 with 400 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 typ dc+sd-jwt, the trailing SD-JWT separator, hour-rounded iat/exp (RFC 9901 linkability), cnf.jwk = the proof key, and a status claim pointing at the shared status list (signed status-list+jwt served per group). Immediate or transaction_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 a transaction_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 to MLDSA65 when PQ, RS256 when classical;
  • 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:

  1. signing_key_for("") resolved to the MLDSA65 arm, so an empty-family sign minted PQ while discovery advertised the derived family. A verifier reading id_token_signing_alg_values_supported then held a token whose kid (and alg header) belonged to the other family.
  2. The seed pinned 'MLDSA65' as a literal on the platform row, so on a classical fleet 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) failed id_token verification.

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 to active_signing_alg(). sign_value_alg and 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:

Postureexpnbfnoncealg=noneSources
standardoptionaloptionalscope-gatedallowedRFC 9101 plain form
fapi_1_advancedREQUIREDREQUIREDREQUIRED (openid scope)forbiddenPart2 §5.2.2-1/13/17 + Baseline §5.2.2.2
fapi_2REQUIREDREQUIREDscope-gatedforbiddenPARS+DPoP posture
fapi_2_message_signingREQUIREDREQUIREDscope-gatedforbiddenfreshness binding
fapi_ciba(CIBA §7.1 validator owns the object rules - separate path)forbidden there§9a.15
vci/vci_haipoptionaloptionalscope-gatedallowedwallet-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 an x5c chain (the attester's certificate chain); claims: iss = the attester's identifier (the trust-policy issuer), sub = the client_id being authenticated, iat/nbf/exp freshness, 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), and challenge when the server advertises an attestation_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 in vci.credential_offer_endpoint (UriComponentsBuilder preserves them), and 302-redirects into the standard authorize flow with state=<issuer_state> + issuer_state=<issuer_state> (the suite's VCIVerifyIssuerStateInAuthorizationRequest requires 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 returns 200 application/json with the Credential Offer object: credential_issuer, credential_configuration_ids (the plan's configuration - VerifiedPersonCredential), and grants.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 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 attributes C (PrintableString, ISO 3166 alpha-2) + CN. The validity period is capped at 457 days, the keyUsage is digitalSignature-only (no CA bit), and the subject C MUST equal the credential's issuing_country data element. The CRLDP target must serve an ISO 18013-5 CRL: application/pkix-crl, a v2 CRL (the version is X but shall be v2 check) 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 PidDataElements catalog defines the allowed member set for eu.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:

  1. 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).
  2. 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/CN subject, digitalSignature keyUsage, and a 400-day validity (inside the 457-day cap, the same window the suite's own reference mint uses) with the subject C matching the credentials' issuing_country value.
  3. 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_b64 mint).
  4. The credential mints drop age_over_18 from the PID element set (it sits outside the suite's Rulebook catalog; the mandatory set stays filled by the existing elements).
  5. The CRL publisher answers the DS certificate's CRLDP with an ISO 18013-5 CRL. The suite's ValidateMdocDsCertificateCrl demands 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 the auth.* 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_b64 member. The OP serves those bytes verbatim at GET /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 /crl endpoint 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 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) - the pem_profile_to_x5c profile 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 ValidateMdocMsoValidUntilWithinDsCertificateValidity reads 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/par stores the verified param record at auth:par:{key} (600s TTL, RFC 9126 §4 AS-decided expiry) with the request's SENDER-CONSTRAINT resolved in priority order: the pre-bound dpop_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_request is 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_jkt and the par_key copy) 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_used sets auth: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_jkt onto the interaction params and ALSO stashes it under auth: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's state (when one was resolved). The DEFERRED-gate pattern: the PAR-mandatory violation (require_par without 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). A request_uri that does not resolve (unknown urn or expired/retired PAR record) rejects as a 302 error REDIRECT to the (validated) redirect_uri with error=invalid_request_uri once 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) reads error from the CALLBACK (EnsureInvalidRequestUriError - exact invalid_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 with error=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-S256 code_challenge_method (the plain method is out of posture) defers to the same post-validation site: error=invalid_request redirect, JARM-wrapped (response=<JWT>) when the profile requires JARM and the request carried response_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_pkce column: "if the pushed authorization request is used, the request MUST contain a code_challenge". The pushed transport under fapi_1_advanced therefore 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=false on 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 blanket require_pkce mandate (their PAR pushes AND by-value flows both carry challenges).

  • The JAR-reject state echo. A by-value JAR flow carries its state ONLY inside the request object (the outer query carries client_id, redirect_uri, and the request param - 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's ExtractJARMFromURLQuery reads the callback's response= param for error JWTs too - a plain RFC 6749 error= redirect carries NO response and the module dies with Couldn'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 no response= to extract - the suite's RejectErrorInUrlQuery reads error= directly there).
  • 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 carry scope), but the BY-VALUE authorize path accepted the same object: the Ok arm's overlay assigned the object's EMPTY scope to params.scope and the flow continued (a code minted through the continue + exchange), so the suite's ensure-request-object-without-scope-fails module - 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 same invalid_request_object reject when a by-value object left params.scope empty (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) and EnsurePARInvalidRequestObjectError (the PAR push) both read the error field and expect invalid_request_object; the bare invalid_request code 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 !verified arm). The by-value Err arm's DEFAULT maps bare heads to invalid_request (the long-state/long-nonce/64-char-nonce param rejects that EnsureInvalidRequestError reads), 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- request module strips redirect_uri from the by-value object AND the outer query, then expects BOTH ExpectRedirectUriMissingErrorPage (FAPI1-BASE-5.2.2-9: the page says the redirect uri is missing) AND CheckIfAuthorizationEndpointError to 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 fill params.redirect_uri and 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_uri does 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 with error + state. The conformance rig resolves the two error-page expectation classes against this posture (sentin8-auth-oidf fixtures/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 bare id_token/token forms - in profile for plain OIDC - reject with unsupported_response_type redirect) keys on the FAPI2 POSTURES (fapi_2_security_profile, fapi_2_message_signing), NEVER on the PAR mandate itself: fapi_1_advanced mandates 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 drive code id_token through 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 state claim 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.state is 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_uri that differs from the registered string ONLY by a query extension (<callback>?foo=bar vs 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_request redirect (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 DPoP header rejects 400 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) ath bound 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 the cnf.jkt constraint (the cert IS a sender constraint, RFC 8705 §3 - Shield resolvers, BFF session enrichment, the auth→sys proxy). A certificate WITHOUT the m2m- prefix is NOT a workload identity and NOT a defect: the FAPI2 mtls/dpop cross cell (client auth tls_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 the x5t#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-record dpop_jkt cannot satisfy the sender-constraint: it rejects 400 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-bound dpop_jkt chose 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 rejects 400 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 flagged dpop_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's cnf.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 is sender_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, and any preserves 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. The dpop_bound boolean remains as the DPoPRS-2 registration view.

  • PKCE is its own column (OC-38). security_profiles.require_pkce is a REAL profile flag - no longer require_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 a code_challenge") and its NOTE explicitly declines to require PKCE elsewhere (backwards compatibility with the by-value request object), so fapi_1_advanced sets require_pkce=false and the by-value happy flow carries no challenge; FAPI2-SP mandates PKCE unconditionally on the authorization request, so fapi_2_security_profile / fapi_2_message_signing set require_pkce=true. The authorize-side PKCE gate therefore keys on require_pkce alone - the PAR-riding coupling (require_par implying 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 authsender_constrainproof at exchangeoutcome
    pkdpopDPoP proofverify + bind cnf.jkt
    pkdpopnone400 invalid_dpop_proof
    pkmtls (or any + cert)certificate (TLS layer)cert-bound cnf.x5t#S256
    pkmtlsneither (cert stripped)400 invalid_request - the mtls-sender
    registration DEMANDS its certificate (the OC-38 cell table)
    mtlsdpopcertificate only400 invalid_dpop_proof (DPoPRS-2)
    mtlsmtlscertificatecert-bound (RFC 8705 section 3)
    anyanyneitherprofile gate decides (env require_dpop for HAIP plan-fixed cells)

    certificate in 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=dpop registration demands a live DPoP proof (the 400 invalid_dpop_proof row above), and a sender_constrain=mtls registration 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 at any no 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 the cert_thumbprint member alone. That member is only set when the client AUTHENTICATES by certificate (self_signed_tls_client_auth / tls_client_auth); a private_key_jwt client keeps it None EVEN WHEN the TLS handshake presented its config certificate (the sentin8-tls layer injects X-Sentin8-Client-Cert-Thumbprint on 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 mints cnf.x5t#S256 via the same header union at the bind site) and the negative's RemoveMTLSCertificates strips the cert (no header, the gate rejects 400 invalid_request). Keying the gate on the auth-method arm alone would kill the pk cell's happy flow (battery-10's fapi2 + fapi2-signing CheckTokenEndpointHttpStatus200 interrupts), 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) - while cert-fapi2-mtls-pk (sender_constrain:"mtls") serves the FAPI2 mtls-sender cell and cert-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) sets require_pkce from the certification family's plan profile - the same standards table the server-side flag encodes - with NO post-FLAGS override line: a JSON later-key-wins override would silently overwrite the per-family posture for every env. The rig table the seed writes:

    rig familyprofilerequire_pkceauthority
    fapi2, fapi2-signingfapi_2, fapi_2_message_signingtrueFAPI2-SP mandates PKCE unconditionally on the authorization request
    fapi1fapi_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-haipvci, 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, logoutstandardfalseplain OIDC Core: all FAPI flags off (runbook §9a.5 step 2)
    implicit, hybridstandardfalsethe response-mode families ride the plain OIDC posture (§9a.25)
    formpostformpostfalsethe Form Post OP profile is the plain OIDC posture (§9a.25)
    sessionmgmtsm_sessionfalsethe Session-OP trio needs no flags (§9a.26)
    fclfclfalsethe FCL surface rides the client registration, not a flag set (§9a.28)
    cibafapi_cibafalsethe CIBA channel never touches the authorize endpoint; the plan's happy flows carry no code_challenge
    oid4vpvpfalsethe verifier family rides the plain OIDC token posture (§9a.27)

    A stale seed line that mandates PKCE on the standard/fapi_1_advanced families 400s every browser-driven happy flow at the authorize gate (invalid_request: PKCE code_challenge is required by the active security profile on the callback) - the exact regression class the per-family FLAGS exist to prevent.

  • The revocation cascade on the resource surface. The code-replay revocation (RFC 6749 §4.1.2 - crate::grants::revoke_by_id on the detected replay) must hold EVERYWHERE the grant's tokens speak: the credential endpoint enforces is_token_revoked + is_grant_revoked the 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/unregistered redirect_uri - the server MUST NOT auto-redirect and SHOULD inform the resource owner: the GET /oauth/authorize surface serves the SAME JS-free error-page family as §9a.23 with the reason in the text (the suite's ExpectRedirectUriMissingErrorPage/ExpectRedirectUriErrorPage modules demand a page saying the redirect uri is missing from the request / the redirect uri is not registered). The JSON invalid_request body 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 PRESENTED post_logout_redirect_uri that is not registered for the identified client serves the error page Invalid request - the post_logout_redirect_uri is not registered for this client.
  • bad-id-token-hint / modified-id-token-hint (ExpectInvalidIdTokenHintErrorPage): a PRESENTED id_token_hint that does not verify as a token THIS OP issued (or whose aud does not resolve to a client) serves the error page Invalid 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 a post_logout_redirect_uri present): the error page Invalid 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 page You have been signed out. (the suite screenshots the successful-logout page - a redirect to /sign-in shows 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 is req.env_id, normally a NON-system target env) and the session-cluster data-plane projections (/v1/session/... service tokens + delegated_from_publisher). The family-blind SigningKeys::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's aud is the target resource indicator and its env_id is the target env; both sides of the contract (mint family, published family) MUST resolve through the same resolve_security_profile_for_env seam 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 cellresponse_typeresponse_modechannel
implicitid_token / id_token tokenfragment302 fragment
hybridcode id_token / code token / code id_token tokenfragment302 fragment + token exchange
formpost-*the source plan's typesform_post200 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 params client_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-bit nonce (Valkey, TTL 600s), and serves the SIGNED request object at GET/POST /oauth/vp/request/{request_id} with typ oauth-authz-req+jwt, signed by the verifier's x5c chain (x509_hash client-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) carries client_id + request_uri + request_uri_method=post in its QUERY (OID4VP-1final 5/5.10 - the wallet cross-checks the query's client_id against the request object's claims.client_id, 5.9.3, and the method-post cell demands the query hint). The request object carries aud = https://self-issued.me/v2 (SIOPv2 6.1 - the wallet IS the audience) + the closed client_metadata key set (OID4VP PR 233): vp_formats_supported (dc+sd-jwt with sd-jwt/KB alg lists), encrypted_response_enc_values_supported (A128GCM + A256GCM - HAIP-5's mandatory encrypted responses), and jwks (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). The request_uri_method=post POST re-signs with the wallet_nonce echo stamped.
  • The response endpoint (POST /oauth/vp/response) answers OID4VP §8.2: the body arrives EITHER form-encoded vp_token= OR the direct_post.jwt form (response=<JWE>, the suite's form- encoded envelope; a raw application/jwt body 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's kid; the decrypted payload's vp_token is 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's cnf.jwk; an embedded header jwk is 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_hash over the pre-KB form, iat window), the credential signature (the connection's trusted_issuers JWKS), status-list revocation (the credential's status.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 carries status_list.{bits,lst} - zlib or raw DEFLATE, LSB-first bit packing, multi-bit entries, cached 5 min), then answers 200 {"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). The redirect_uri answer carries the verification OUTCOME for the OP-hosted landing: the redirect target embeds a single-use verification={token} reference (a Valkey row auth: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's ExpectVerifierSuccessfulVerificationPage requires 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's redirect_uri with the downstream code (the §8.2 contract).
  • The verifier metadata (/.well-known/openid-credential-verifier) stays honest: the SINGLE client_id form used by the requests (x509_hash prefix 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_connections row, strategy eudi_wallet, config JSONB): the verifier's trusted-issuer set + min_level_of_assurance (the conformance env pins low - the suite's PID credential carries no acr claim). 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 the config column; the admin API's token verify is TENANT-AWARE (a token minted on a tenant auth host carries https://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

  • CreateMdocCredential builds the presentation from the suite's own pre-provisioned doc store (mDL/PhotoID/EU-PID documents, session transcript bound), the DCQL preset carries meta.doctype_value from the credential_type axis, and the presentation rides the same direct_post.jwt response. The VICAL checks the ISO_MDL variant adds (SetupVicalFromConfiguration -> ValidateOwnMdocSigningChainAgainstVical) ride skipIfObjectsMissing(vical) with an INFO-level skip - an absent VICAL config skips clean (the suite's own RegisterVical logs No VICAL configured, skipping VICAL-based mdoc issuer trust checks); the mdoc trust on the OP side stays the connection's trusted_mdoc_ds admission 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 vct MUST appear in the matching entry's meta.vct_values, and the presentation MUST disclose at least ONE of the query's requested claim paths (the suite's PID legitimately omits the optional acr, so requiring every requested claim would reject a conformant presentation - OID4VP's violation is disclosing NO requested claim). A mismatch is the 401 invalid_token verdict; the suite's wrong-vct negative module is the regression proof.
  • mso_mdoc: the presented document's docType MUST equal the entry's meta.doctype_value, and every DCQL-requested element MUST be disclosed. The suite's wrong-vct/invalid-sd-hash cells 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) and frontchannel_logout_session_required (the per-client sid demand). The grant row + the admin UI carry both fields.
  • Discovery: frontchannel_logout_supported: true and frontchannel_logout_session_supported: true ride 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 a frontchannel_logout_uri - the iframe URL carries iss (the issuer) and, when the client demands it (frontchannel_logout_session_required or the client registered a session-bearing logout), the sid of 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 sid claim: the ID token carries sid for 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 the cert-fcl env: discovery verification, the frontchannel-logout happy flow (the logout lands the iframes), the session-required negative (a client with frontchannel_logout_session_required must receive sid), 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 carrying deviceSigned.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-level credential_trust_anchor_pem test-config member (the chain validator reads env key credential_trust_anchor_pem; the VICAL path takes precedence when a VICAL is configured).
  • The response-encryption JWK in client_metadata.jwks may omit use - 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 member attestation_challenge: "<uuid>" (§6.3's exact response parameter name - NOT challenge; the suite's unknown-field check rejects extra members). The record's lifetime is the valkey TTL (300s); no expires_in member (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 requesting client_id (from the attestation JWT's sub, best effort) - the PoP verify path (§7.2 rule 5) gains the challenge branch: a PoP carrying a challenge claim 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 400 with error: use_attestation_challenge + a FRESH challenge in the OAuth-Client-Attestation-Challenge response header - the spec-true retry path a certified client expects. The bare 401 invalid_client stays 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' vct becomes 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's VCIFetchSdJwtVcTypeMetadata follows. (The historical URN urn:eudi:pid:1 remains 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/json when the slug matches a configured credential family; 404 otherwise. 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 circular extends is forbidden §10.3), display (array of {locale, name, description} objects - locale REQUIRED 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; RECOMMENDED always/never per §9.4), mandatory boolean (§9.3), path the non-empty claim-path array (§9.1), display per-claim locale objects with REQUIRED label (§9.2)).
  • Single source (no drift): the claims array 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 with sd: "always" (matching the mint's actual selective disclosure) and mandatory: true for the claims every PID carries.
  • Integrity (§7): the credential's vct#integrity claim carries sha256-<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's VCIVerifyTypeMetadataIntegrity (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 gains authorization_details (verbatim, already-validated) - the code is the state carrier between authorize and token.
  • Token response: TokenResponse gains authorization_details: Option<Value> (skip_serializing when absent - the plain OIDC families see no change) + the derived credential_identifiers per detail whose type is openid_credential: [{"credential_configuration_id": <the detail's "credential_configuration_id" or the type's id>}] - STABLE across token responses (the suite's VCIEnsureCredentialIdentifiersUnchangedAcrossTokenResponses compares 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 (SIOPv2 client metadata 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 to client_metadata (the suite's ExtractVerifierInfoFromAuthorizationRequest + 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's EnsureAuthorizationRequestContainsPkceCodeChallenge).

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 / ruleTest layer (tests/)
oidcc-basic-certification-test-planprompt=none/login, max_age, scope→claims, userinfo GET/POST both, session-less authorizeoidf_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 cascadeoidf_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-plandiscovery completeness block (CIBA + backchannel-logout + claims params)oidf_flows.rs (oidf_config_discovery_completeness)
oidcc-dynamic-certification-test-planRFC 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; WebFingeroidf_flows.rs + conformance_profiles.rs
oidcc-rp-initiated-logout-certification-test-planstate echo on registered landing; unregistered → the error PAGE (§9a.23); id_token_hint verification; no-hint fallbackoidf_logout.rs + sec_auth2.rs (sec_auth2_logout_redirect_allowlist)
(Back-Channel Logout)logout token shape: events+sid, no nonce; fan-out POSTbackchannel_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-planrequest-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_hashoidf_fapi.rs (fapi_1_advanced) + conformance.rs
fapi2-message-signing-final-test-planstrict-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 rejectoidf_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 contractoidf_fapi.rs (fapi_ciba row) + ciba.rs unit tests
oid4vci-1_0-issuer-test-planmetadata (credential_configurations_supported + nonce/batch), §8.1 nonce first-proof GETDEL, unknown config/identifier errors (§7.4 shape), batch N→N, invalid proofoidf_vci.rs + oid4vci.rs unit tests
oid4vci-1_0-issuer-haip-test-planOAuth-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-plancredential-offer landing → authorize redirect state echo (VCIVerifyIssuerStateInAuthorizationRequest, §9a.20)oidf_vci.rs
Cross-planthe 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.

FamilyRoutesSpec 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.jsonOIDC 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/revokeRFC 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-logoutOIDC Core §5.3.1, OIDC RP-Initiated Logout, OIDC Back-Channel Logout
Session/oauth/check-session (GET), /oauth/check-session/iframeOIDC 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-passwordsRFC 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/ResourceTypesRFC 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)
InternalPOST /v1/internal/keys/rotatecron proxy-back, §8
Edge middlewareroute_guard (admin backstop), token_no_store_middlewareRFC 6749 §5.1, RFC 7662 §4, RFC 8705 §5

11. Key & Signature Strategy (per-profile)​

ConcernRuleSpec anchor
Key families["MLDSA65","RS256","ES256"]; signing = ML-DSA-65 (PQ exclusive default) or RS256 (classical); ES256 verification-onlyRFC 7518, ML-DSA (COSE/JOSE drafts)
Rotationinsert-new-key overlap; daily timer 30-day staleness gate + cron proxy-back force bypassRFC 7517 (all keys in the set during overlap)
At-rest encryptionAES-256-GCM under the platform master key; wrong key refuses bootsecret-references-only rule
Per-tenant publicationJWKS endpoint is env-FAMILY filtered via the resolved security profileOIDC Core §3.1.3.7
Proof typesES256 JWS for wallet proofs (raw r‖s), RS256 for client assertions, PS256 (RSASSA-PSS) supported verify sideRFC 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)​

SpecTitleAnchorWhere in auth
RFC 6749The OAuth 2.0 Authorization Framework§3-§6 (endpoints/grants), §5.1 (no-store), §5.2 (auth errors), §10.4 (stuffing)everything under /oauth/*
RFC 6750Bearer Token Usage§2.2 (verification)bearer extraction and verification
RFC 7009Token Revocation§2.1/oauth/revoke + grant cascade
RFC 7636PKCE§4.1-§4.6S256-only code challenges
RFC 8628Device Authorization Grant§3.1-§3.5/oauth/device, /device/verify
RFC 8693Token Exchange§2.1/§4.1grant_type=token-exchange, delegation.rs
RFC 9126Pushed Authorization Requests§2-§4/oauth/par
RFC 9101JWT Secured Authorization Request (JAR)§4-§5jar.rs request objects
RFC 9207Authorization Server Issuer Identification§2-§3iss response parameter
RFC 9396Rich Authorization Requests§2authorization_details
RFC 8707Resource Indicators§2/§3resource → audience
RFC 9449DPoP§4-§7.2dpop.rs; DPoP scheme on userinfo/credential
RFC 8705mTLS Client Auth + Certificate-Bound Tokens§2-§5mtls.rs, /mtls/* aliases, cnf.x5t#S256
RFC 9421HTTP Message Signatures§2http_signatures.rs (FAPI2-MS)
RFC 9530HTTP Message Digest Fields§2content digests for signatures
RFC 9701JWT Introspection Response§3-§4signed introspection
RFC 7662Token Introspection§2.1-§4JSON introspection + no-store
RFC 7515JWS§4/§5all token signing
RFC 7517JWK / JWK Set§4/.well-known/jwks.json
RFC 7518JWA§3.4/§3.5RS256 + PS256
RFC 7523JWT Client Authentication§2-§3private_key_jwt client assertions
RFC 7638JWK Thumbprint§3cnf.jkt (DPoP)
RFC 8414AS Metadata§2-§3/.well-known/oauth-authorization-server
RFC 7033WebFinger§4-§10webfinger.rs
RFC 8252OAuth for Native Apps§2.1/§7/§8.1loopback + custom-scheme redirects
RFC 7591Dynamic Client Registration§2-§3/§5dcr.rs register
RFC 7592DCR Management§2-§5dcr.rs manage
RFC 6819OAuth 2.0 Threat Model§4.1.6/§4.4/§4.5.2request injection, credential theft, stuffing
RFC 9436Identity Chainingreferencedelegated-identity framing
RFC 5280X.509 PKI§4.1x5c leaf cert walk (key attestation)
RFC 6238TOTP§4/§5.1mfa.rs
RFC 4648Base32/64§6TOTP secret encoding

OpenID Foundation specs​

SpecLinkWhere in auth
OIDC Coreopenid.net/specs/openid-connect-core-1_0.htmlauthorize/token/userinfo/id_token/claims
OIDC Discoveryopenid.net/specs/openid-connect-discovery-1_0.html/.well-known/openid-configuration
OIDC RP-Initiated Logoutopenid.net/specs/openid-connect-rpinitiated-1_0.html/oauth/logout
OIDC Back-Channel Logoutopenid.net/specs/openid-connect-backchannel-1_0.htmllogout tokens + fan-out
OIDC Session Managementopenid.net/specs/openid-connect-session-1_0.htmlcheck_session_iframe + session_state (§9a.26)
OAuth 2.0 Form Post Response Modeopenid.net/specs/oauth-v2-form-post-response-mode-1_0.htmlresponse_mode=form_post (§9a.25)
SIOPv2 (Self-Issued OP)openid.net/specs/openid-connect-self-issued-v2-1_0.htmlwallet audience https://self-issued.me/v2 (§9a.27)
JARMopenid.net/specs/oauth-v2-jarm.htmlsigned response modes
CIBAopenid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html/oauth/bc-authorize poll/ping
FAPI 2.0 Security Profileopenid.net/specs/fapi-2_0-security-profile.htmlplatform default posture
FAPI 2.0 Message Signingopenid.net/specs/fapi-2_0-message-signing.htmlRFC 9421 + RFC 9701 posture
FAPI 1.0 Advancedopenid.net/specs/openid-financial-api-part-2.htmlfapi_1_advanced profile
FAPI 2.0 Grant Managementopenid.net/specs/fapi-grant-management.html/oauth/grants + grant_id
OID4VCIopenid.net/specs/openid-4-verifiable-credential-issuance-1_0.htmloid4vci.rs issuer surface
OID4VPopenid.net/specs/openid-4-verifiable-presentations-1_0.htmlwallet.rs verifier surface
SD-JWT VCdraft-ietf-oauth-sd-jwt-vccredential format (vct)
SD-JWTdraft-ietf-oauth-selective-disclosure-jwtsd_jwt.rs
OAuth Status Listdraft-ietf-oauth-status-listcredential status lists
eKYC-IDAopenid.net/specs/openid-connect-ida-1_0.htmlverified_claims
OID4VCI linkability (RFC 9901)rfc-editor.org/rfc/rfc9901.htmlhour-rounded iat/exp
CIMD (experimental)draft-ietf-oauth-client-id-metadata-documentexperimental.rs
WebAuthnwww.w3.org/TR/webauthn-3passkeys

Workforce / enterprise​

SpecLinkWhere in auth
SCIM 2.0 Core SchemaRFC 7643user/group schema
SCIM 2.0 ProtocolRFC 7644/scim/v2/* incl. Bulk §3.7
SAML 2.0 (metadata/ACS)OASIS SAML v2.0enterprise connections
ISO/IEC 18013-5 (RICAL)ISO/IEC 18013-5:2021 Annex F.3.2verifier request-object chain trust (§9a.27)

13. Open Questions​

  • Continuous access evaluation: session/token revocations already push sentin8:auth:session:revoked to 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 attestation conveyance 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 /Bulk is live (RFC 7644 §3.7): a thin wrapper over the per-user SQL paths (≤100 ops; failOnErrors stops 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.