Forum Discussion
0belix
Feb 14, 2022Copper Contributor
Core 5 Razor Pages redirect to custom location login page
Hi, I have created a login page that stands on the root of the application instead of the standard /Account/Login. When attempting to access a page that as the [Authorize] annotation, I keep get...
- Feb 14, 2022
Found the answer, in case someone stumbles with the same question:
services.ConfigureApplicationCookie(options => { options.LoginPath = "/Login"; options.LogoutPath = "/Logout"; });
0belix
Feb 14, 2022Copper Contributor
Found the answer, in case someone stumbles with the same question:
services.ConfigureApplicationCookie(options =>
{
options.LoginPath = "/Login";
options.LogoutPath = "/Logout";
});