asp.net/winforms login; uml managers, repositories pages edited

This commit is contained in:
Dimitar Byalkov
2023-03-31 01:01:20 +02:00
parent 78eba13712
commit 99e2b2a0cd
16 changed files with 322 additions and 20 deletions

View File

@@ -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.