Core MVC application with Azure AD authentication. Unable to unprotect Message.State error

Occasional Visitor

I have a ASP.NET Core 3.1 MVC application which is integrated with AZURE AD for authentication.
The problem is that when redirecting between the pages it issues a request to a url something similar to :

it automatically authenticated and next page loads perfectly fine. but if I press back button then it gets redirected back to this weird login url. And that's when it throws exception. This doesn't always happen, only every few minutes or so.


0 Replies