I want to define area admin to set CookieAuthenticationOptions.
Please help me
app.UseWhen(x => x.Request.Path.Value.StartsWith("/Admin"), p =>
{
p.UseCookieAuthentication(new CookieAuthenticationOptions()
{
LoginPath = new PathString("/Admin/Account/Login/"),
AccessDeniedPath = new PathString("/Admin/Account/Forbidden/"),
AutomaticAuthenticate = true,
AutomaticChallenge = true
});
});