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

Support audience claim as string or array #1

Merged
merged 2 commits into from
Jan 15, 2019

Conversation

looking-promising
Copy link

@looking-promising looking-promising commented Jan 15, 2019

This was created based on the following PR:
dgrijalva#286

As per the JWT spec, the aud claim field can be either a single string value 
or an array of strings.

jwt-go would completely drop array values as the StandardClaims struct's 
Audience field is a string value and the value is dropped upon deserialization.

This was created based on the following PR:
dgrijalva#286

As per the JWT spec, the aud claim field can be either a single string value or an array of strings.

jwt-go would completely drop array values as the StandardClaims struct's Audience field is a string value and the value is dropped upon deserialization.
@looking-promising looking-promising merged commit 24dd2a6 into master Jan 15, 2019
@katerji92
Copy link

This code was a straight-up copy of dgrijalva#286

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.

2 participants