-
Notifications
You must be signed in to change notification settings - Fork 218
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
[Bug] Issuer is validated despite setting 'ValidateIssuer' to false #797
Comments
Possibly related to #168 |
Thanks @dkrasnove for this heads-up and your suggestion. |
Thanks @dkrasnove. i have a linked PR above w/your suggestion. I think this will go in our 1.4 release next week. |
Thanks. Also FYI, this same bug exists in MicrosoftIdentityWebAppAuthenticationBuilderExtensions. There is also probably an issue with audience validation when ValidateAudience is set to false for identical reasons in the web API handler. That's all I've noticed for now! |
@dkrasnove yes, good point. have added it as well. thanks again. |
Included in 1.4 Release. |
error is happening again on 1.16.0 version :(
|
Which version of Microsoft Identity Web are you using?
Note that to get help, you need to run the latest version.
Microsoft Identity Web 1.3.0
Where is the issue?
Is this a new or an existing app?
a. The app is in production and I have upgraded to a new version of Microsoft Identity Web.
Repro
Startup.cs
appsettings.json
JWT
Expected behavior
Since
JwtBearerOptions.TokenValidationParameters.ValidateIssuer
is set tofalse
, I would expect the issuer not to be validated.Actual behavior
The issuer is validated anyway. This is a problem because it fails validation with the default
AadIssuerValidator
.Possible solution
Workaround (Register a dummy [or custom]
IssuerValidator
):Startup.cs
Possible Solution:
microsoft-identityweb/src/Microsoft.Identity.Web/WebApiExtensions/MicrosoftIdentityWebApiAuthenticationBuilderExtensions.cs, line 193
The text was updated successfully, but these errors were encountered: