Protocol conformance
The protocol contracts the service claims, each with the test suites that assert it. Generated from the repository's conformance matrix; local evidence, not a certification.
What this page is, and is not
This is the list of protocol contracts the service claims, each tied to the test suites that assert it against a real PostgreSQL database. It is generated from the repository's conformance matrix.
It is local test evidence. It is not an OpenID Foundation certification, a third-party audit or production evidence, and it must not be quoted as one. The OpenID conformance suite has not been run against this service. The matrix covers the OAuth and OIDC provider surface only. It says nothing about federation, SAML or SCIM.
37 contracts and their evidence
Each entry names the contract, the clause asserted and the suites that prove it. Source digest c4b957bb7b10.
- RFC 9068 JWT AT profile: typ: at+jwt header; iss, sub, aud, exp, iat, jti, client_id and scope claims on the strict profile. Evidence: wp03b_token_profile_db.rs (modern_profile_mints_at_jwt_with_pairwise_subject). Status: Evidenced.
- RFC 9068 claim propagation: scopes, audience, tenant claims and pairwise subject survive issue and refresh. Evidence: http_api_db.rs (authorization_code_pkce_flow), token_oidc_db.rs (code_exchange_id_token_is_honest_and_carries_the_tenant_claims), wp03b_token_profile_db.rs (refresh_rotation_keeps_pairwise_subject). Status: Evidenced.
- RFC 8628 device flow: pending, slow_down, expired, denied and consumed states; only a client registered for the grant may start. Evidence: device_flow_http.rs (device_flow_pending_to_approved_to_consumed), device_flow_http.rs::device_flow_denied_stays_denied, device_flow_http.rs::device_flow_slow_down_widens_interval, device_flow_http.rs::device_flow_expired_is_terminal, device_flow_http.rs::device_code_mint_requires_the_registered_grant. Status: Evidenced.
- RFC 8693 token exchange: subject token verified, scope and resource attenuated, act claim nested across hops up to depth 3, sender-constrained tokens refused. Evidence: token_exchange_db.rs (exchange_happy_path_mints_act_chain_and_attenuates_scope), wp08q_delegation_db.rs::two_hop_chain_nests_act_and_binds_delegator_subject, wp08q_delegation_db.rs::chain_depth_cap_refuses_a_fourth_hop, token_exchange_db.rs::a_sender_constrained_subject_or_actor_token_is_not_exchanged. Status: Evidenced.
- RFC 7523 client assertions (agents): private_key_jwt verify; wrong audience, issuer or type, expired, unknown kid and revoked credential refused; jti single use. Evidence: client_assertion_db.rs (private_key_jwt_happy_path_and_jti_replay), client_assertion_db.rs::wrong_aud_expired_long_exp_and_wrong_type_are_rejected, client_assertion_db.rs::unknown_kid_revoked_credential_and_suspended_agent_are_rejected, agent_lifecycle_db.rs (enroll_rotate_revoke_credentials_and_status_transitions). Status: Evidenced.
- private_key_jwt for registered clients: registered jwks or jwks_uri, RS256, PS256 and ES256; mismatched assertions and unsafe key registrations refused. Evidence: wp19a_private_key_jwt_http.rs (a_client_with_registered_keys_authenticates_with_rs256_ps256_and_es256), wp19a_private_key_jwt_http.rs::assertions_that_do_not_match_a_registered_key_are_refused, wp19a_private_key_jwt_http.rs::registration_refuses_unsafe_keys_and_both_key_sources. Status: Evidenced.
- RFC 7523 JWT bearer grant: a linked person gets a bounded token once from a trusted issuer; refusals read the same; other directories trust nothing. Evidence: wp19d_jwt_bearer_http.rs (a_linked_person_gets_a_bounded_federated_token_once), wp19d_jwt_bearer_http.rs::every_refused_assertion_reads_the_same, wp19d_jwt_bearer_http.rs::another_directory_trusts_and_maps_nothing. Status: Evidenced (off by default).
- RFC 9728 protected resource metadata: /.well-known/oauth-protected-resource lists configured resources; a tenant host lists only its own approved ones. Evidence: mcp_metadata_http.rs (protected_resource_metadata_serves_configured_resources), wp10e_tenant_issuer_isolation.rs::protected_resource_metadata_lists_the_hosts_own_approved_resources_only. Status: Evidenced.
- OIDC discovery: /.well-known/openid-configuration and /.well-known/oauth-authorization-server issuer, endpoint, JWKS and algorithm wiring. Evidence: discovery_http.rs (openid_configuration_matches_contract), discovery_http.rs::oauth_authorization_server_matches_contract, discovery_http.rs::platform_discovery_and_jwks_bytes_are_snapshotted. Status: Evidenced.
- JWKS: /.well-known/jwks.json and /oauth/jwks publish the verification keys; rotation keeps the old kid for the overlap, then rejects it. Evidence: discovery_http.rs (jwks_serves_public_key), sec05_kid_rollover.rs::rotation_keeps_old_kid_valid_within_overlap_then_retired_rejects, ops_wp06c_db.rs::admin_rotate_rolls_kid_and_concurrent_rotate_is_fenced. Status: Evidenced.
- UserInfo: bearer-bound sub is the pairwise subject; scope-gated claims; missing or invalid token refused. Evidence: wp03b_token_profile_db.rs::modern_profile_mints_at_jwt_with_pairwise_subject, token_oidc_db.rs::userinfo_gates_claims_by_scope_and_reports_real_verification_flags, token_oidc_db.rs::userinfo_refuses_a_missing_or_invalid_bearer_token, wp07_isolation_pilot.rs::oauth_tokens_stay_in_their_issuer_audience_and_type. Status: Evidenced.
- RP-initiated logout: /oauth/end_session ends the session; only a registered post-logout redirect is followed; an invalid hint never redirects. Evidence: end_session_http.rs (registered_post_logout_redirect_gets_a_state_echo_and_ends_the_session), end_session_http.rs::unregistered_post_logout_redirect_renders_the_confirmation_page, end_session_http.rs::an_invalid_hint_never_redirects_and_never_errors. Status: Evidenced.
- OIDC back-channel logout: advertised in discovery; only clients with a logout endpoint are recorded; failures are retried and then given up. Evidence: authorize_consent_http.rs (discovery_advertises_back_channel_logout), authorize_consent_http.rs::only_clients_with_a_logout_endpoint_are_recorded_and_deprovisioning_queues_notices, authorize_consent_http.rs::a_failing_logout_endpoint_is_retried_then_given_up_on. Status: Evidenced.
- OIDC front-channel logout: the signed-out page frames the participating clients and names only their origins; registration is validated. Evidence: wp11e_logout_propagation_http.rs (the_signed_out_page_frames_the_participants_and_names_only_their_origins), wp11e_logout_propagation_http.rs::logout_registration_is_validated_and_session_required_needs_an_endpoint. Status: Evidenced (not checked in a browser).
- RFC 7009 revocation: 200 on an unknown token, 200 no-op on a foreign one, 401 unauthenticated, real invalidation, 503 on keystore failure. Evidence: revoke_http.rs (unknown_and_unverifiable_tokens_are_no_op_200s), revoke_http.rs::foreign_token_is_a_no_op_200_that_stays_alive, revoke_http.rs::unauthenticated_revocation_is_a_401_and_leaves_the_token_alone, sec04_revocation.rs::logout_revokes_session_and_refresh_family, failclosed_wp06b.rs::revoke_surfaces_keystore_failure_as_non_2xx, wp07_isolation_pilot.rs::revocation_is_owned_and_never_enumerates. Status: Evidenced.
- RFC 7662 introspection: inactive on every failure; session and user liveness checked; a key-bound token is reported as DPoP. Evidence: introspect_db.rs (standard_mode_collapses_every_failure_to_an_inactive_token), introspect_db.rs::standard_mode_checks_session_and_user_liveness_for_user_tokens, introspect_db.rs::a_key_bound_token_is_introspected_as_dpop_with_its_binding. Status: Evidenced.
- PKCE: code_challenge_method=S256 only: plain, absent and unknown methods refused at authorize with an invalid_request redirect. Evidence: wp07_conformance.rs::authorize_accepts_only_s256_code_challenge_method. Status: Added by WP-07.
- PKCE verifier binding: a wrong verifier is refused and the code is not consumed. Evidence: wp07_conformance.rs::authorization_code_exchange_is_bound_and_single_use, http_api_db.rs (authorization_code_pkce_flow). Status: Evidenced.
- Authorization code binding: code bound to client_id and redirect_uri: a cross-client exchange or the other registered redirect gives invalid_grant and the code is not consumed. Evidence: wp07_conformance.rs::authorization_code_exchange_is_bound_and_single_use. Status: Added by WP-07.
- Authorization code single use: consumed atomically; replay gives invalid_grant; concurrent exchanges yield one token pair. Evidence: wp07_conformance.rs::authorization_code_exchange_is_bound_and_single_use, http_api_db.rs::concurrent_exchanges_of_one_code_yield_exactly_one_token_pair. Status: Evidenced.
- PKCE downgrade on stored code: a stored code carrying code_challenge_method=plain is refused at exchange and not consumed. Evidence: wp07_conformance.rs::authorization_code_exchange_is_bound_and_single_use. Status: Added by WP-07.
- Grant-type allowlist: the password grant gives unsupported_grant_type. Evidence: http_api_db.rs::password_grant_is_no_longer_supported. Status: Evidenced.
- Consent-gated claims: no code before consent; withdrawal stops refresh; revoked grants never cover; userinfo claims follow scope. Evidence: authorize_consent_http.rs (first_touch_renders_consent_and_issues_no_code), authorize_consent_http.rs::consent_withdrawal_stops_refresh_and_reauthorization_never_revives_old_tokens, consent_db.rs::revoked_grants_never_cover, token_oidc_db.rs::userinfo_gates_claims_by_scope_and_reports_real_verification_flags. Status: Evidenced.
- Pairwise subject invariance: same principal and sector give the same sub; a foreign directory resolves nothing. Evidence: wp03b_token_profile_db.rs::cross_directory_clients_reject_each_others_tokens, wp07_isolation_pilot.rs::boundary_services_refuse_cross_tenant_objects. Status: Evidenced.
- RFC 7591 registration, bounded: open registration refused without allowlists; application binding needs an authenticated manager. Evidence: wp07_isolation_pilot.rs::dcr_is_bounded_and_discovery_leaks_no_tenant_data, sec06_client_binding.rs::dcr_binding_requires_authenticated_caller, http_api_db.rs::dcr_rejects_empty_deployment_allowlists_with_rfc7591_error. Status: Evidenced.
- RFC 7592 registration management: a registration token reads, updates and deletes only its own client. Evidence: wp19f_client_management_http.rs (a_registration_token_reads_updates_and_deletes_only_its_own_client), wp19f_client_management_http.rs::the_login_only_client_and_an_owned_client_are_never_managed. Status: Evidenced (off by default).
- Refresh rotation: one successor under concurrency; reuse revokes the family; another client cannot rotate the token. Evidence: sec04_revocation.rs::concurrent_refresh_single_successor_and_replay_revokes_family, token_db.rs::concurrent_refresh_rotation_has_exactly_one_winner, http_api_db.rs (authorization_code_pkce_flow). Status: Evidenced.
- RFC 9207 issuer parameter: iss on the success redirect and on error redirects. Evidence: authorize_consent_http.rs (allow_persists_the_grant_and_redirects_with_a_code), authorize_consent_http.rs::deny_redirects_access_denied_with_state_and_persists_nothing. Status: Evidenced.
- OIDC request parameters: prompt, max_age, id_token_hint and the claims acr requirement are honoured. Evidence: authorize_consent_http.rs (prompt_login_and_an_outlived_max_age_force_a_fresh_sign_in), wp11b_authorize_params_http.rs::prompt_consent_asks_again_and_survives_a_sign_in, wp11b_authorize_params_http.rs::an_id_token_hint_never_signs_a_different_person_in, wp11b_authorize_params_http.rs::claims_require_an_acr_and_release_nothing_beyond_the_scopes. Status: Evidenced.
- Authentication evidence (amr, acr): recorded factors match the ID token and survive refresh; an unreached class is never claimed. Evidence: wp11c_assurance_db.rs (every_sign_in_records_its_factors_in_order_and_the_id_token_and_the_token_row_agree), wp11c_assurance_db.rs::a_refresh_carries_the_evidence_of_the_sign_in_unchanged, wp11c_assurance_db.rs::a_class_the_sign_in_did_not_reach_is_unmet_never_claimed. Status: Evidenced.
- RFC 9126 pushed requests: a request is stored bound to its client and used once; a client that requires PAR gets nothing else, including through OIDC federation. Evidence: authorize_consent_http.rs (a_pushed_request_is_stored_bound_to_its_client_and_used_once), authorize_consent_http.rs::a_client_that_requires_pushed_requests_gets_no_other_kind_through_any_step, inc71_dpop_par_jar_http.rs::a_confidential_client_pushes_with_its_secret_and_with_nothing_else, e1906_federation_request_rules_http.rs::a_federated_start_obeys_the_pushed_request_requirement. Status: Evidenced.
- RFC 9101 signed request objects: the signed object is the authorization request; an object that is not the client's own is refused. Evidence: authorize_consent_http.rs (a_signed_request_object_is_the_authorization_request), authorize_consent_http.rs::a_request_object_that_is_not_the_clients_own_is_refused, e1906_federation_request_rules_http.rs::a_federated_start_obeys_the_signed_request_requirement. Status: Evidenced.
- RFC 9449 DPoP: tokens bind to the proof key; bad proofs issue nothing; dpop_jkt, nonces and require-DPoP. Evidence: authorize_consent_http.rs (dpop_binds_the_token_pair_to_the_proofs_key_and_nothing_else_can_use_it), authorize_consent_http.rs::bad_dpop_proofs_are_refused_at_the_token_endpoint_before_anything_is_issued, inc71_dpop_par_jar_http.rs::a_code_requested_for_a_key_is_exchanged_only_with_that_key, inc71_dpop_par_jar_http.rs::where_nonces_are_required_every_proof_carries_one_this_service_issued, inc71_dpop_par_jar_http.rs::a_client_that_requires_dpop_is_issued_nothing_unbound. Status: Evidenced.
- Sender-constrained tokens elsewhere: surfaces that check no proof refuse a token carrying cnf. Evidence: e1906_federation_request_rules_http.rs::userinfo_refuses_a_sender_constrained_token_presented_as_a_bearer, management_mcp_db.rs::a_sender_constrained_token_opens_no_management_session, control_plane_auth_db.rs::a_sender_constrained_operator_token_is_not_a_bearer, sec06_client_binding.rs::a_sender_constrained_token_binds_no_registration_and_no_graphql_identity. Status: Evidenced.
- RFC 9396 rich authorization requests: details checked, consented, carried and only narrowed; PAR binds the form. Evidence: wp19g_rar_http.rs (details_are_checked_consented_carried_and_only_narrow), wp19g_rar_http.rs::pushed_requests_are_checked_and_bind_the_form. Status: Evidenced (off by default).
- ES256 and EdDSA signing keys: rotation mints and publishes a P-256 or Ed25519 key (service-wide choice; key store level). Evidence: wp19e_signing_algorithms_db.rs (rotating_to_es256_mints_and_publishes_a_p256_key), wp19e_signing_algorithms_db.rs::rotating_to_eddsa_mints_and_publishes_an_ed25519_key. Status: Evidenced (RS256 by default).
- Per-client FAPI 2.0 refusal rules: a flagged client is held to the implemented rules on each request; not profile conformance (see limits below). Evidence: wp19h_fapi2_http.rs (a_flagged_client_is_held_to_the_profile_on_every_request), wp19h_fapi2_http.rs::the_flag_only_tightens_and_other_clients_are_unchanged. Status: Evidenced (per client, partial profile).
Gaps the matrix found and closed
authorize previously had no test asserting the non-S256 method set is refused (the S256 gate, now in routes/oauth_authorize/params.rs, was only exercised for the missing-PKCE path), closed by authorize_accepts_only_s256_code_challenge_method.
No suite asserted refused exchanges leave the code unconsumed (the oracle-free property: you can't burn someone else's code by guessing wrong verifier/redirect/client), closed by the not-consumed assertions in authorization_code_exchange_is_bound_and_single_use.
Stored code_challenge_method='plain' rows (e.g., written by a buggy or hostile earlier version) were untested at exchange, closed (refused, not consumed).