Я не использовал NET Core Identity по умолчанию и создал свой собственный AccountController, проблема в том, что при использовании атрибута «Authorize» на контроллере неавторизованные пользователи перенаправляются на «Identity / Pages / Account».
Я пытался изменить маршрут из файла Setup.css
services
.ConfigureApplicationCookie(options =>
{
options.LoginPath = "/Account/Login";
options.LogoutPath = "/Account/Logout";
options.AccessDeniedPath = "/AccessDenied";
});
Но пока нет успеха
services
.AddAuthentication()
.AddGoogle(options =>
{
IConfigurationSection googleAuthNSection =
this.configuration.GetSection("Authentication:Google");
options.ClientId = this.configuration["Authentication:Google:ClientId"];
options.ClientSecret = this.configuration["Authentication:Google:ClientSecret"];
});