0

Every time when a user signs in (via Azure Active Directory) for the first time everyday the system redirect the users to this:

IDX21323: RequireNonce is 'System.Boolean'. OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocol.ValidatedIdToken.Payload.Nonce was not null. The nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'. Note if a 'nonce' is found it will be evaluated

I have tried the using these solutions but it seems like these solutions are only for ASP.NET MVC

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
prof_daily
  • 39
  • 1
  • 4

1 Answers1

0

I got a similar issue couple of years back which I'd resolved by defining an empty Session_Start method in Global.aspx.cs file

void Session_Start(object sender, EventArgs e)
{
     // place holder to solve endless loop issue
}

You can read about this workaround's more details at following github threads:

https://github.com/IdentityServer/IdentityServer3/issues/542#issuecomment-74579842

https://github.com/aspnet/AspNetKatana/issues/70#issuecomment-346853448

user1672994
  • 10,509
  • 1
  • 19
  • 32