microsoft / azure-activedirectory-jwt-token-handler-for-dotnet

Apache License 2.0
29 stars 15 forks source link

AudienceUriValidationFailedException - JWT Token Audience is an array #3

Open marinkobabic opened 10 years ago

marinkobabic commented 10 years ago

https://connect.microsoft.com/site1168/feedback/details/811873/audienceurivalidationfailedexception-jwt-token-audience-is-an-array

According to the documentation http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#audDef

the aud value is an array of case-sensitive strings, each containing a StringOrURI value. In the special case when the JWT has one audience, the aud value MAY be a single case-sensitive string containing a StringOrURI value.

if the jwt token has an array of one or more entries the AudienceUriValidationFailedException will be raised.

The used library is System.IdentityModel.Tokens.Jwt.dll Version 3.

brentschmaltz commented 10 years ago

Thanks for the comment.

You are correct. Look for support in the next release.

leastprivilege commented 10 years ago

When will that be?

brentschmaltz commented 10 years ago

We are getting on it this month.