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

feat(security): added the ability to use a different claim field to match against the allow-subjects list. #763

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LCerebo
Copy link

@LCerebo LCerebo commented May 14, 2024

Summary

You can use a custom claim field to identify users i.e. 'email' or 'preferred_username'.
If not specified the default is 'subject'.

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

##Notes
Tested using a keycloak server as OIDC provider.
I tried to add some unit tests but I'm not sure how to mock a valid OIDC server.

…atch against the allow-subjects list.

In this way you can use 'email' or 'preferred_username' to identify the users.
If not specified the default is 'subject'.
@LCerebo
Copy link
Author

LCerebo commented May 31, 2024

@TwiN can you take a look in this PR?
Thanks in advance.

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

1 participant