fix(authn): oauth pcke challenge for github and a correct oidc nonce#5647
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v2 #5647 +/- ##
==========================================
+ Coverage 60.70% 60.94% +0.24%
==========================================
Files 141 141
Lines 14023 14122 +99
==========================================
+ Hits 8513 8607 +94
+ Misses 4784 4781 -3
- Partials 726 734 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Roman Dmytrenko <[email protected]>
erka
marked this pull request as ready for review
April 1, 2026 21:52
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.
This pull request adds support for Proof Key for Code Exchange (PKCE) to the GitHub and OIDC authentication flows. PKCE is an additional security layer for OAuth2, and these changes allow it to be enabled via configuration. The implementation includes updates to configuration files, backend logic for storing and verifying challenges, and comprehensive tests to ensure correct behavior and error handling.
PKCE Support for GitHub and OIDC Authentication
Configuration and Schema Updates:
use_pkceboolean option to the GitHub and OIDC authentication configuration schemas (config/flipt.schema.cue,config/flipt.schema.json,internal/config/authentication.go). [1] [2] [3]GitHub Authentication Flow:
use_pkceis enabled, and verifies it during the callback. [1] [2] [3]OIDC Authentication Flow:
Testing and Validation:
usePKCEfield for naming conventions.These changes collectively enhance the security of the OAuth2 authentication flows by supporting PKCE, and ensure robust handling and testing of the new logic.