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

SOLR-16230: JWT nested roles support #890

Merged
merged 11 commits into from
Sep 14, 2022
Merged

SOLR-16230: JWT nested roles support #890

merged 11 commits into from
Sep 14, 2022

Conversation

col-panic
Copy link
Contributor

@col-panic col-panic commented Jun 2, 2022

16230

Description

JWT-Auth: Support for Keycloak-Style nested roles

Solution

Introduce the support for dot-notation in rolesClaim which assumes that the underlying element is a map with nested resolve capability.

Tests

Please see the contained test

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

Copy link
Contributor

@janhoy janhoy left a comment

Choose a reason for hiding this comment

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

I tested, and it looks good. Just a minor comment in the code.
I'll push a commit to add RefGuide docs and CHANGES entry.

col-panic and others added 3 commits September 9, 2022 07:04
…TAuthPlugin.java

Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
…TAuthPlugin.java

Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
Copy link
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

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

This looks great. My one comment isn't really a request for change... I really like the addition to the Ref Guide, but I find that no matter what "words" we use, it's all very hard to understand how keycloak works! Someday, maybe some nice examples, versus trying to explain how it works?

@chongma
Copy link

chongma commented Sep 12, 2022

Thanks for looking at this

@janhoy janhoy merged commit 1293467 into apache:main Sep 14, 2022
janhoy added a commit that referenced this pull request Sep 14, 2022
Co-authored-by: Jan Høydahl <janhoy@users.noreply.github.com>
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.

4 participants