Prevent redirect to /Account/Login in asp.net core 2.2
The behaviour you experience is linked to the fact that you use ASP.NET Identity. When you call services.AddIdentity, behind the scenes a cookie-based authentication scheme is registered and set as the default challenge scheme, as you can see in the code here on GitHub. Even though you registered a cookie authentication scheme yourself and set … Read more