Skip to content

Web OIDC: send PKCE S256 so PKCE-enforcing IdPs work - #944

Open
stevenolen wants to merge 1 commit into
madeofpendletonwool:mainfrom
stevenolen:fix/web-oidc-pkce
Open

Web OIDC: send PKCE S256 so PKCE-enforcing IdPs work#944
stevenolen wants to merge 1 commit into
madeofpendletonwool:mainfrom
stevenolen:fix/web-oidc-pkce

Conversation

@stevenolen

Copy link
Copy Markdown

Fixes #928

The web login flow never sent PKCE params, so IdPs that enforce PKCE rejected it. This generates a code verifier + S256 challenge on the client and sends code_challenge/code_challenge_method=S256 on the auth request. Backend was already PKCE-ready (stores the verifier, replays it in token exchange), so this is client-side only.

Tested locally against my live deployment: OIDC login now succeeds against a PKCE-enforcing IdP. Added tests for the S256 challenge (RFC 7636 vector + output shape) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant