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

Allow 'any' matching strategy for audience claim #80

Open
dschanoeh opened this issue Jul 24, 2021 · 0 comments
Open

Allow 'any' matching strategy for audience claim #80

dschanoeh opened this issue Jul 24, 2021 · 0 comments

Comments

@dschanoeh
Copy link

The audience matching configuration takes a list of audience values and a token is considered valid when all values are present in the token.
In scenarios where a backend is supposed to serve multiple clients, each having a single but different audience value, a behavior where any match is sufficient is desired. This cannot be achieved with the current configuration option.
As a workaround, one can use the roles matching by setting "roles_key": "aud" but this is not very intuitive (and then no other claims can be checked using this mechanism).
Instead, I propose to add a configuration option similar to scopes_matcher to allow changing of the audience matching strategy.

Also it'd be useful to add to the documentation a note that indicates that the default behavior is to require a match of all audience values.

@dschanoeh dschanoeh changed the title Allow 'any' validation for audience claim Allow 'any' matching strategy for audience claim Jul 24, 2021
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

No branches or pull requests

1 participant