porchlight/tests/test_oidc
Johan Lundberg 27763d19ea
fix(security): don't mint new ID tokens on refresh; confirm offline_access gating
idpyoidc already gates refresh-token issuance on the offline_access scope
(verified by test), but the refresh-token grant was configured to also mint
fresh ID tokens. Drop id_token from the refresh_token grant's supports_minting
so refreshing yields only access (and a rotated refresh) token; ID tokens come
from authentication. Refresh-token rotation is retained.

Refs: porchlight-553

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 09:25:49 +02:00
..
__init__.py chore: create package structure with src layout 2026-02-12 14:39:07 +01:00
test_app_integration.py feat: integrate idpyoidc server into app lifespan 2026-02-16 13:29:39 +01:00
test_authorization.py fix(security): escape error text in OIDC error pages 2026-06-04 11:06:08 +02:00
test_claims.py update all imports in test files: fastapi_oidc_op → porchlight 2026-02-16 15:34:53 +01:00
test_consent_flow.py fix(security): reject consent scopes outside the original request 2026-06-04 10:26:55 +02:00
test_discovery.py feat: add OIDC discovery, JWKS, and authorization endpoints 2026-02-16 13:33:40 +01:00
test_e2e_flow.py fix(security): don't mint new ID tokens on refresh; confirm offline_access gating 2026-06-10 09:25:49 +02:00
test_login_oidc_redirect.py fix: reorder imports and use ty-compatible type suppression 2026-02-19 14:29:01 +01:00
test_provider.py fix(security): lock down signing-key file permissions 2026-06-08 15:21:27 +02:00
test_token.py fix: reorder imports and use ty-compatible type suppression 2026-02-19 14:29:01 +01:00
test_userinfo.py fix: reorder imports and use ty-compatible type suppression 2026-02-19 14:29:01 +01:00