Skip to content

Conversation

@authentik-automation
Copy link
Contributor

Cherry-pick of #17763 to version-2025.10 branch.

Original PR: #17763
Original Author: @alex9smith
Cherry-picked commit: 6b43ddc

* 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>
@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 035e67b
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6900d5df23250600088d318c
😎 Deploy Preview https://deploy-preview-17765--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 035e67b
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6900d5df54b4530008b2c7a2

@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.93%. Comparing base (fdc3d95) to head (035e67b).
⚠️ Report is 2 commits behind head on version-2025.10.
✅ All tests successful. No failed tests found.

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     
Flag Coverage Δ
e2e 45.18% <0.00%> (-0.07%) ⬇️
integration 23.18% <0.00%> (+<0.01%) ⬆️
unit 91.07% <100.00%> (+<0.01%) ⬆️
unit-migrate 91.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rissson rissson merged commit 2093e0e into version-2025.10 Oct 28, 2025
87 of 88 checks passed
@rissson rissson deleted the cherry-pick/17763-to-version-2025.10 branch October 28, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants