-
Notifications
You must be signed in to change notification settings - Fork 401
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
Token validation does not use require audience parameter #1547
Comments
RequireAudience is used only for SAML and SAML2 right? The documentation on the property tries to state this
Should we expand the comment to explicitly state that it is not relevant for jwts? |
Definitely not. Bugs should not be documented, bugs should be fixed. It should be possible to validate a JWT token with logic along the lines of: "the audience is not required, but if you do send one, it should be correct". |
@KrisVandermotten @DaveBrue assigned to @sruke Line 87 in 161f199
Where if the Audience is null, we will not fault if RequireAudience is false. |
AWS Cognito service-to-service (client credentials only) token does not have Audience. That's for example. A workaround:
|
4 Years and no fix... |
good point @phillip-haydon - we will take a look, apologies for the delay. |
System.IdentityModel.Tokens.Jwt v6.8.0
The token doesn't have an audience and it throws an audience exception but the RequireAudience parameter is false so it shouldn't throw.
The text was updated successfully, but these errors were encountered: