Commit 61b8509
flowcore-platform
fix: enable PKCE for Keycloak OAuth to prevent invalid_grant errors
Added code_challenge_method: "S256" to KeycloakProvider authorization
params to enable PKCE (Proof Key for Code Exchange). This prevents
double-submit and code replay attacks that were causing invalid_grant
errors during OAuth callback, which manifested as 502 Bad Gateway
errors in the browser.
PKCE adds an extra layer of security and ensures authorization codes
can only be used once by the client that initiated the OAuth flow.1 parent 9fa36a6 commit 61b8509
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments