Correlation Failed in blazor Server

Prathamesh Shende 376 Reputation points
2022-09-24T12:01:01.603+00:00

I am getting this error after login from Identity Server and return to page by redirectUrl. url is ssshttps//localhost:44300/authentication/login-callback)

Exception: Correlation failed.
Unknown location

Exception: An error was encountered while handling the remote login.
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()

Project is on Blazor Server-Side Project.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,385 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Casper Pieterse 10 Reputation points
    2023-03-06T18:58:55.5333333+00:00

    Posting this in case someone else runs into it.

    In Program.cs

    CookiePolicyOptions cookiePolicy = new CookiePolicyOptions(){Secure = CookieSecurePolicy.Always};
    app.UseCookiePolicy(cookiePolicy);
    
    2 people found this answer helpful.
    0 comments No comments