Can anyone please check below code and let me know why I\'m getting always false (User.Identity.IsAuthenticated)??. I\'m getting cookie on my browser properly and able to
I know this question was asked a long time ago, but it might be useful to another person.
Using app.UseAuthentication(); right before app.UseAuthorization(); inside the Configure method in the Startup.cs class fixed it for me.
app.UseAuthentication();
app.UseAuthorization();