This project is read-only.

Complex CookieAuthenticationOptions.LoginPath

Jun 4, 2014 at 4:21 PM
If you want to change the LoginPath depending on your location within an application, how would you do that?

IAppBuilder.UserCookieAuthentication only accepts a type of CookieAuthenticationOptions and CookieAuthenticationOptions does not allow overriding the LoginPath property.

It would be nice if I could point LoginPath to an MVC route or else make LoginPath accept parameters from an MVC route.
Jun 10, 2014 at 7:04 PM
The CookieAuthenticationOptions has a property LoginPath that you can override. That is the recommended approach. Please look at the Microsoft.AspNet.Identity.Samples package on how it is configured