I use CookieAuthentication in ASP.NET Core MVC 3.1 and I have to set the LoginPath while configuring in the Startup.cs.
CookieAuthentication
LoginPath
Startup.cs
I have this