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

Load roles from path from user context #2368

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Load roles from path from user context #2368

merged 4 commits into from
Apr 10, 2024

Conversation

marcopiraccini
Copy link
Contributor

This to load roles from structured objects that can be loaded from JWT claims, e.g.:

  "resource_access": {
    "rest-api": {
      "roles": [
        "admin",
        "user"
      ]
    },

To support that, a rolePath can be used, specifying a dot-separated path. In this case we would need:

{ 
   (...)
   rolePath: "resource_access.rest-api.roles"
   (...)
}

Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
@marcopiraccini marcopiraccini marked this pull request as ready for review April 10, 2024 12:37
@marcopiraccini marcopiraccini changed the title Load roles from path in user context Load roles from path from user context Apr 10, 2024
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
@mcollina
Copy link
Member

Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 17920a6 into main Apr 10, 2024
89 of 91 checks passed
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.

None yet

2 participants