Fix client ID returned by token introspection - #5787
Open
Jared Erwin (feordin) wants to merge 3 commits into
Open
Fix client ID returned by token introspection#5787Jared Erwin (feordin) wants to merge 3 commits into
Jared Erwin (feordin) wants to merge 3 commits into
Conversation
Return Entra appid and azp claims as the RFC 7662 client_id before falling back to the subject used by development OpenIddict tokens. Add direct mapping tests and exact E2E assertions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5c093da7-5c6e-47c4-bea5-24f9667bbf49
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5787 +/- ##
==========================================
+ Coverage 78.28% 79.03% +0.74%
==========================================
Files 1016 1016
Lines 36940 36943 +3
Branches 5619 5620 +1
==========================================
+ Hits 28920 29199 +279
+ Misses 6644 6350 -294
- Partials 1376 1394 +18 🚀 New features to boost your workflow:
|
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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.
Description
appidor Entra v2azpclaim as the RFC 7662client_idinstead of the user subject.client_idprecedence and thesubfallback used by development OpenIddict tokens.Related issues
Addresses [issue AB#206560].
Testing
Additional integration tests were added
FHIR Team Checklist
Semver Change (docs)
Patch - corrects the client identifier returned by token introspection without changing the endpoint contract.