Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for regex pattern in DefaultJWTClaimMapper permission parser #7574

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adamko147
Copy link

What changed?

Added support for parsing permissions from JWT claim using regular expression

Why?

Default JWT Claim Mapper expects permission in form namespace:role. If it's not possible to configure JWT issuer to follow namespace:role permissionsPattern can be set to regular expression with named groups to parse permission. More details in issue gh-7560

How did you test it?

  • Unit tests
  • Local tests
  • Self hosted environment (ongoing)

Potential risks

This change is only activated if new configuration is provided

Documentation

WIP

Is hotfix candidate?

No

@adamko147 adamko147 requested a review from a team as a code owner April 4, 2025 22:12
@CLAassistant
Copy link

CLAassistant commented Apr 4, 2025

CLA assistant check
All committers have signed the CLA.

@adamko147 adamko147 marked this pull request as draft April 4, 2025 22:14
@adamko147 adamko147 marked this pull request as ready for review April 4, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants