Open Closed

Error authenticating the login page. #10356


User avatar
0
dvillena.cp created

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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks, I will check it online.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The cookies are no problem

    Can you share the latest logs.txt again?

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    dvillena.cp created

    Hi Were you able to find the issue?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi

    No, Can you share the latest logs.txt again?

    Thanks.

  • User Avatar
    0
    dvillena.cp created

    I’ve already sent you the logs in the email.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 30, 2026, 08:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.