Feat/support claim matching based on login hint#926
Open
d-lopes wants to merge 8 commits intonavikt:masterfrom
Open
Feat/support claim matching based on login hint#926d-lopes wants to merge 8 commits intonavikt:masterfrom
d-lopes wants to merge 8 commits intonavikt:masterfrom
Conversation
…ameters to support claim matching and template resolution
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Author
|
I realised that there are still docker build related settings here that point to my repo where I forked your mock-oauth2-server. I am not sure how to isolate it in a way where these details do not end up in your repo but keep the docker build working for me :/ |
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 PR adds support for matching token callback mappings against original authorization request parameters such as
login_hintand other extra auth request args.Why is it useful?
This improves the server’s ability to drive token issuance based on the original OIDC auth request, while keeping existing token callback behavior unchanged for non-auth-code flows.
How it works? / What is changed?
The Authorization code flow now preserves auth request query parameters and merges them into token callback matching. The
RequestMappingTokenCallbackcan match on auth request params likelogin_hint,acr_values,claims, or any custom extra parameter.The Auth request params can also be used in claim templates, e.g.
\"email\": \"${login_hint}\".In addition, README.md was updated to document the new behavior and provide examples for login_hint-based matching.