feat: identity is carried in sub claim#5813
Merged
paullatzelsperger merged 9 commits intoJun 11, 2026
Merged
Conversation
# Conflicts: # system-tests/management-api/management-api-test-runner/src/test/java/org/eclipse/edc/test/e2e/managementapi/v5/CelExpressionApiV5EndToEndTest.java
Completes the scope-based authorization cutover: ParticipantPrincipal now carries (participantContextId, scope) with role/ROLE_*/getRoles() removed; ServicePrincipalAuthenticationFilter reads identity from the standard 'sub' claim instead of the custom participant_context_id claim, and skips the participant-context existence check for admin-scoped tokens; Constants replaces TOKEN_CLAIM_ROLE/TOKEN_CLAIM_PARTICIPANT_CONTEXT_ID with TOKEN_CLAIM_SUBJECT; the OauthServer/OauthTokenProvider fixtures and the management-api test client mint tokens by sub+scope (no role). Part of eclipse-edc#5799, closes eclipse-edc#5803. Signed-off-by: Paul Latzelsperger <paul.latzelsperger@beardyinc.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
cf06c3e to
676b9b8
Compare
ndr-brt
reviewed
Jun 11, 2026
ndr-brt
approved these changes
Jun 11, 2026
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.
What this PR changes/adds
subclaim instead of theparticipant_context_idclaim.roleclaim are droppedWhy it does that
move to scope-based authz
Further notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
Who will sponsor this feature?
Please @-mention the committer that will sponsor your feature.
Linked Issue(s)
Closes #5803
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.