sources/oauth: Make PKCE verifier 128 characters (cherry-pick #17763 to version-2025.10)#17765
Merged
rissson merged 1 commit intoversion-2025.10from Oct 28, 2025
Merged
Conversation
* sources/oauth: Make PKCE verifier 128 characters The PKCE spec requires the code verifier to be 43-128 characters inclusive[^1]. The default `length` argument to `generate_id` is 40 characters, which meant the verifier is always shorter than required by the spec. This could cause issues integrating authentik with PKCE-compliant OIDC providers. [^1]: https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 * add length test Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
2 tasks
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs canceled.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## version-2025.10 #17765 +/- ##
===================================================
- Coverage 92.98% 92.93% -0.05%
===================================================
Files 869 869
Lines 47944 47945 +1
===================================================
- Hits 44579 44558 -21
- Misses 3365 3387 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #17763 to
version-2025.10branch.Original PR: #17763
Original Author: @alex9smith
Cherry-picked commit: 6b43ddc