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

Audience as an array - how to specify? #276

Closed
mahemoff opened this issue Aug 16, 2018 · 2 comments
Closed

Audience as an array - how to specify? #276

mahemoff opened this issue Aug 16, 2018 · 2 comments

Comments

@mahemoff
Copy link

The README says an array is possible for aud. I specified an array of possible audiences:

verify_aud: true, aud: ['client1', 'client2', 'client3']

I'm seeing this when "client1" (for example) is passed in as aud:

  "Invalid audience. Expected ["client1", "client2", "client3"], received client1

Maybe I'm specifying the array wrong, but I'm not sure how else it would be done.

@excpt
Copy link
Member

excpt commented Aug 16, 2018

Hi @mahemoff,

can you please specify the jwt version you're using?

@mahemoff
Copy link
Author

mahemoff commented Sep 3, 2018

Sorry, it must have been an earlier version as I verified it works on 1.5.6.

@excpt excpt reopened this Sep 3, 2018
@excpt excpt closed this as completed Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants