Hi,
I have Owin but i have 3 places where i ask for username and password. the startup page used in Owin Authentication. Is there a way in the startup file (or create more than one file) as it might be annoying for users to have to go to the startup page as they know the page they want to go to!
In Short, I have main.aspx, forever.aspx and frederic.aspx --- they all have login screen but Owin will consider main.aspx (for Authentication) and will not allow the users to login the other pages unless they visit main.aspx first!
public void Configuration(IAppBuilder app)
{
app.UseCookieAuthentication(new CookieAuthenticationOptions
{AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Main.aspx"),
});
}
Thanks.