If you setup an MVC app with authentication and use the [Authorize]
tag, it will automatically redirect unauthenticated users to the login view.
But how does it know that page is the login page? I've looked through a example app, but couldn't find anything obvious.
edit
I forgot to mention that I'm using MVC6.
You might find it in your web.config, in
Further reading: Jon Galloway: Looking at how the ASP.NET MVC Authorize interacts with ASP.NET Forms Authorization