1
Reply

I am getting this error when i am login to my Applin in mvc

rak esh

rak esh

Feb 19 2017 11:09 PM
1.3k

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'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.IdentityModel.Protocols.OpenIdConnectProtocolInvalidNonceException: 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'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[OpenIdConnectProtocolInvalidNonceException: 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'.]    Microsoft.IdentityModel.Protocols.OpenIdConnectProtocolValidator.ValidateNonce(JwtSecurityToken jwt, OpenIdConnectProtocolValidationContext validationContext) +528    Microsoft.IdentityModel.Protocols.OpenIdConnectProtocolValidator.Validate(JwtSecurityToken jwt, OpenIdConnectProtocolValidationContext validationContext) +2738    Microsoft.Owin.Security.OpenIdConnect.<AuthenticateCoreAsync>d__1a.MoveNext() +7416    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +22    Microsoft.Owin.Security.OpenIdConnect.<AuthenticateCoreAsync>d__1a.MoveNext() +9585    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52    System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +24    Microsoft.Owin.Security.Infrastructure.<BaseInitializeAsync>d__0.MoveNext() +810    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52    System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21    Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +427    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52    System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21    Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<RunApp>d__5.MoveNext() +287    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52    System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21    Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +937    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52    System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21    Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<RunApp>d__5.MoveNext() +287    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52    System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21    Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<DoFinalWork>d__2.MoveNext() +272    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +22    Microsoft.Owin.Host.SystemWeb.Infrastructure.ErrorState.Rethrow() +33    Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +150    Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar) +42    System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +415    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36373

Answers (1)