asp.net/winforms login; uml managers, repositories pages edited
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
|
||||
namespace WebApp
|
||||
{
|
||||
public class Program
|
||||
@@ -9,6 +11,11 @@ namespace WebApp
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorPages();
|
||||
|
||||
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => {
|
||||
options.LoginPath = new PathString("/Login");
|
||||
options.AccessDeniedPath = new PathString("/Error/401");
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
Reference in New Issue
Block a user