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

Jwt audience validation #1116

Merged
merged 3 commits into from Oct 26, 2020
Merged

Conversation

leemhenson
Copy link
Contributor

Description

Auth0, for example, can send aud: ["", ""] in it's token. It also looks like it's possible to configure multiple or single acceptable audiences in the serverless.yml. This PR lifts both sets of audiences into an array which are then checked for an overlap.

Motivation and Context

I originally submitted this change as #1060 which was closed in favour of the similar #1070. Now that I've had chance to use the version that includes that change, I still see the same error that motivated my original PR. I think my change is still needed.

How Has This Been Tested?

Tests now exist for string-based audiences, array-based audiences containing a single element and array-based audiences of length > 1.

@dherault dherault merged commit 02f622b into dherault:master Oct 26, 2020
@dherault
Copy link
Owner

Thanks, @leemhenson! Great work!

@leemhenson leemhenson deleted the jwt-audience-validation branch January 25, 2021 11:52
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

2 participants