Skip to content

feat: add dynamic scope mapping - #1037

Merged
wolf4ood merged 1 commit into
eclipse-edc:mainfrom
wolf4ood:feat/1035_dynamic_scope_mapping
Jul 10, 2026
Merged

feat: add dynamic scope mapping#1037
wolf4ood merged 1 commit into
eclipse-edc:mainfrom
wolf4ood:feat/1035_dynamic_scope_mapping

Conversation

@wolf4ood

@wolf4ood wolf4ood commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

What this PR changes/adds

Add dynamic scope mapping by configuration

For example

edc.identityhub.scope.membership.pattern=org\.eclipse\.custom\.vc\.type:(.+):(read|\*|all)
edc.identityhub.scope.membership.leftOperand=verifiableCredential.credential.type
edc.identityhub.scope.membership.operator=contains
edc.identityhub.scope.membership.rightOperand=$1

This config would make org.eclipse.customvc.type:MembershipCredential:read map to
verifiableCredential.credential.type contains 'MembershipCredential'

If no configuration found or there is no match with the mappings the behavior is the same as today.

Why it does that

Briefly state why the change was necessary.

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 #1035

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@wolf4ood wolf4ood self-assigned this Jul 10, 2026
@wolf4ood wolf4ood added the enhancement New feature or request label Jul 10, 2026
@wolf4ood
wolf4ood marked this pull request as ready for review July 10, 2026 09:02
@wolf4ood
wolf4ood requested a review from a team as a code owner July 10, 2026 09:02
@wolf4ood
wolf4ood force-pushed the feat/1035_dynamic_scope_mapping branch from 949fbd4 to 7cf3527 Compare July 10, 2026 09:19
@wolf4ood
wolf4ood merged commit 50b1ace into eclipse-edc:main Jul 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamic scope mapping

3 participants