I have an application using the OWIN middleware for OpenIdConnect. The startup.cs file uses the standard implementation of app.UseOpenIdConnectAuthentication. The cookie is set to the browser, but it errors with:
IDX10311: RequireNonce is 'true' (default) but validationContext.Nonce is null. A nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'.
I've found that when running fiddler as I do for most debug projects this behavior happens. The error is returned, but if I go back to the site everything is working and my user is authenticated. Has anyone seen this behavior when running fiddler?
With fiddler:
- SecurityTokenValidated notification in OpenIdConnect is executed twice.
- After the second pass through the IDX10311 error is thrown
- Browser contains the valid cookie, going back to the page I can view the valid User.Identity data.
Running without fiddler:
- SecurityTokenValidated executes once in OpenIdConnect
- No error thrown, proceeds to load up controller action for post authentication redirect Uri
- Cookie also valid and User.Identity data correct.
Ideas? I can get around it without running fiddler, but when debugging it would be nice to also run fiddler to inspect traffic.