AppModelv2-WebApp-OpenIDConnect-DotNet icon indicating copy to clipboard operation
AppModelv2-WebApp-OpenIDConnect-DotNet copied to clipboard

Writing to Session disrupts ASP.NET MVC OpenId SignIn

Open ameleta-alsco opened this issue 2 years ago • 0 comments

Trying to understand why writing to Session with OpenId Connect disrupts the Sign In process.

For example, if I modify HomeController the way below, the SignIn stops working; By SignIn, it will redirect you to Azure AD and return to the Index unauthenticated.

public ActionResult Index()
{
    Session["TEST"] = "TEST"; // Let's make a SignIn disruption
    return View();
}

Removing the code during debug will not rectify the process, only if you restart the app. Any solution or workaround?

ameleta-alsco avatar Sep 13 '21 02:09 ameleta-alsco