Modify CookieAuthenticationOptions LoginPath OnRedirectToReturnUrl Event
问题 I have the following setup in my MVC 6 ASP.NET 5 project: Startup.cs in the Configure Method: app.UseCookieAuthentication(options => { options.AuthenticationScheme = "Cookie"; options.LoginPath = new PathString("/<TENANT>/account/signin/"); options.AccessDeniedPath = new PathString("/<TENANT>/account/unauthorised/"); options.AutomaticAuthenticate = true; options.AutomaticChallenge = true; options.Events = new CookieAuthenticationEvents { OnRedirectToReturnUrl = MyClass