Erweiterungsmethoden hinzugefügt, um Benutzeransprüche in ControllerBase für ID, Benutzernamen, Namen, Vornamen und E-Mail abzurufen.

This commit is contained in:
Developer 02
2024-06-17 10:46:41 +02:00
parent 1efd241ab0
commit fc91a451f6
12 changed files with 141 additions and 52 deletions

View File

@@ -2,6 +2,7 @@ using DigitalData.Core.API;
using DigitalData.Core.Application;
using DigitalData.UserManager.Application;
using DigitalData.UserManager.Infrastructure.Repositories;
using EnvelopeGenerator.Application;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.EntityFrameworkCore;
@@ -55,6 +56,9 @@ builder.Services.AddDirectorySearchService();
// Localizer
builder.Services.AddCookieBasedLocalizer() ;
// Envelope generator serives
builder.Services.AddEnvelopeGenerator();
var app = builder.Build();
// Configure the HTTP request pipeline.
@@ -75,8 +79,8 @@ app.UseHttpsRedirection();
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseAuthorization();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();