OpenIdConnectProtocolInvalidNonceException
Notifications = new OpenIdConnectAuthenticationNotifications { AuthenticationFailed = n => { if(n.Exception is OpenIdConnectProtocolInvalidNonceException) { // This is the confusing line if(n.OwinContext.Authentication.User.Identity.IsAuthenticated) { n.SkipToNextMiddleware(); return Task.FromResult(0); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)