Skip to content

Error CookieAuthenticationOptions upgrade asp.net core 1.1 to 2.0 #2059

@balasratran

Description

@balasratran

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
});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions