-
Notifications
You must be signed in to change notification settings - Fork 276
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
Fix issue with jwt attribute parsing of lists #4884
Conversation
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4884 +/- ##
==========================================
- Coverage 69.90% 69.86% -0.04%
==========================================
Files 320 320
Lines 21688 21706 +18
Branches 3460 3462 +2
==========================================
+ Hits 15160 15164 +4
- Misses 4734 4750 +16
+ Partials 1794 1792 -2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cwperks , thanks for taking this on. I just left some comments. The change is LGTM in general.
src/test/java/org/opensearch/security/http/OnBehalfOfAuthenticatorTest.java
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Craig Perkins <[email protected]> (cherry picked from commit ddcecb5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Fixes issue in the JWT authenticator when parsing a claim that contains a list value. The existing parsing logic works as-is, but the problem arises when you try to use the parsed value in a DLS clause using the
${attr.jwt.claim}
syntax.Bug fix
Issues Resolved
Resolves: #4267
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.