Closed slavanap closed 6 years ago
Looks like HTTPS is forced for any authentication available and there's no option to provide user accounts via simple HTTP.
I've replaced Manage & Account controllers with AddDefaultIdentity and it started to work again.
I thought it was cookies issue at the beginning, but it's not. I'm running .NET Core MVC application as a console application, I register identity&auth with code snippet at the end of the message. My issue is that User variable in MVC view doesn't contain user identity after successful user SignIn (
_signInManager.PasswordSignInAsync(...).Succeeded
istrue
).RazorPageBase.User is not Authenticated after successful sign-in. How to fix this? Tried with Chrome & Firefox. Debug looks like this:![2018-08-19](https://user-images.githubusercontent.com/1901547/44304673-463c8680-a36b-11e8-84bb-6af60676a2f2.jpg)
My Startup.cs. The app was originally migrated from netcore2.0 to netcore2.1, but I don't like new app template where you can't customize Identity pages, that's why I want to keep them, if possible.