Hi, we’re finding that users often get a 400 error message when they try to authenticate.
I’ve checked the logs and this is what I see:
2026-01-27 12:51:57.800 +01:00 [ERR] [] [] An unhandled exception has occurred while executing the request. System.Exception: An error was encountered while handling the remote login. ---> System.Exception: Unable to unprotect the message.State. --- End of inner exception stack trace --- at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<
What solution would you suggest in this case? Best regards
31 Answer(s)
-
0
Thanks, I will check it online.
-
0
-
0
Hi Were you able to find the issue?
-
0
Hi
No, Can you share the latest logs.txt again?
Thanks.
-
0
I’ve already sent you the logs in the email.
-
0
hi
Try to and
options.ProtocolValidator.NonceLifetime = cookieLifetime;try again.var cookieLifetime = TimeSpan.FromMinutes(60); options.RemoteAuthenticationTimeout = cookieLifetime; options.CorrelationCookie.Expiration = cookieLifetime; options.NonceCookie.Expiration = cookieLifetime; options.ProtocolValidator.NonceLifetime = cookieLifetime;Thanks

