Documentation & code cleanup
This commit is contained in:
@@ -13,7 +13,8 @@ namespace WebApp
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorPages();
|
||||
|
||||
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => {
|
||||
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
|
||||
{
|
||||
options.LoginPath = new PathString("/Login");
|
||||
options.AccessDeniedPath = new PathString("/Error/401");
|
||||
});
|
||||
|
Reference in New Issue
Block a user