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

Use subject claim from jwt #131

Merged
merged 4 commits into from
May 24, 2023
Merged

Conversation

jclapadula
Copy link
Contributor

@jclapadula jclapadula commented May 12, 2023

This PR extends the JWTJsonAuthenticatedAction class to use the subject claim (if present), to enhance the request with the user name, similar to what is done in the BasicAuthAuthenticatedAction class.

I added a couple tests to check that this functionality works even if there is no "sub" claim. Disclaimer: Is the first scala test I write, so maybe the idea is right but the implementation sucks.

@jclapadula jclapadula marked this pull request as draft May 12, 2023 13:19
@jclapadula jclapadula marked this pull request as ready for review May 12, 2023 13:20
@dobestler dobestler requested a review from pbartusch May 12, 2023 13:21
@dobestler dobestler requested a review from mkr May 22, 2023 07:37
@dobestler
Copy link
Contributor

Hi @mkr Would you have time to have a quick look at this? Thanks very much in advance

@mkr
Copy link
Collaborator

mkr commented May 22, 2023

Apart from style issues this looks ok to me.

@jclapadula
Copy link
Contributor Author

Thanks @mkr , it's fixed 😃

@jclapadula jclapadula requested a review from mkr May 22, 2023 17:17
@mkr mkr merged commit 2671ca2 into querqy:master May 24, 2023
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.

3 participants