Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

what is AuthenticationScheme and AccessDeniedPath usage

$
0
0

see the code first

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
    app.UseCookieAuthentication(new CookieAuthenticationOptions
    {
        AuthenticationScheme = "Cookie",
        LoginPath = new PathString("/Account/Login"),
        AccessDeniedPath = new PathString("/Account/Forbidden"),
        AutomaticAuthenticate = true,
        AutomaticChallenge = true
    });

}

tell me what is AuthenticationScheme and AccessDeniedPath with example.

thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>