OIDC callback (first sign-in completion: state/nonce validation, code exchange, session cookie) #25
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/authz-bridge!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/oidc-callback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #16
Replaces the
:8082stub handler with the OIDC callback — first sign-in completing:stateURL param against the state/nonce cookie (CSRF); a forged callback is rejected (403, token endpoint not called).appKey(no reliance on the gateway forwarding the Host to:8082).codevia theauthorization_codegrant using the client secret (asserted on the token-endpoint double's received form).OidcSession.TTL) and 302s the browser toreturnTo(from the cookie, not thestateURL param, so the return URL is not logged by the IdP or leaked in the redirect).Verified TDD-first: 10 callback tests (happy path incl. a PathEscape round-trip for special characters, forged/missing/malformed state, unknown appKey, unregistered path, secret-not-ready, endpoint failure table, unreachable endpoint, missing code), all RED before implementation and GREEN after. Full suite green (
-p 1). Two-axis code review: no hard standard violations; edge-case notes (root-registered callback URL, multi-URLredirect_uri) are safe under fail-closed.