Augment PKCE autodiscovery
Author: alnrCreated Sep 25, 2024Updated Sep 27, 2026
Labelsfeatstale
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe your problem
Some providers (Microsoft, Salesforce, maybe more) don't advertise PKCE but do support it.
Describe your ideal solution
We should earmark those providers as supporting PKCE, and when config option pkce==auto in the Kratos OIDC provider configuration, skip autodiscovery and perform PKCE.
The Salesforce docs need updating to reflect Kratos now supports PKCE.
Workarounds or alternatives
Don't have automatic PKCE for some providers and let users configure pkce==force if they want it.
Version
1.2
Additional Context
No response
Source: ory/kratos