Integration des Active Directory Controllers und Active Directory Service abgeschlossen.

This commit is contained in:
Developer 02
2024-03-11 08:48:40 +01:00
parent 58f87e2be5
commit df9bc33795
420 changed files with 2611 additions and 4118 deletions

View File

@@ -5,9 +5,9 @@ using DigitalData.UserManager.Application.Services;
using DigitalData.UserManager.Infrastructure.Repositories;
using DigitalData.UserManager.Infrastructure.Contracts;
using DigitalData.Core.CultureServices;
using DigitalData.Core.Contracts.Authentication.Services;
using DigitalData.UserManager.Domain.Entities;
using DigitalData.Core.Authentication.Services;
using DigitalData.Core.Application;
using System.DirectoryServices;
using DigitalData.UserManager.API;
var builder = WebApplication.CreateBuilder(args);
@@ -25,7 +25,6 @@ builder.Services.AddSwaggerGen();
// options.ReportApiVersions = true;
//});
builder.Services.AddDbContext<DDECMDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("DD_ECM_Connection")));
@@ -48,6 +47,7 @@ builder.Services.AddAutoMapper(typeof(GroupOfUserMappingProfile).Assembly);
builder.Services.AddAutoMapper(typeof(ModuleMappingProfile).Assembly);
builder.Services.AddAutoMapper(typeof(ModuleOfUserMappingProfile).Assembly);
builder.Services.AddAutoMapper(typeof(UserRepMappingProfile).Assembly);
builder.Services.AddAutoMapper(typeof(DirectoryMappingProfile).Assembly);
builder.Services.AddScoped<IUserRepository, UserRepository>();
builder.Services.AddScoped<IGroupRepository, GroupRepository>();
@@ -63,7 +63,7 @@ builder.Services.AddScoped<IModuleService, ModuleService>();
builder.Services.AddScoped<IModuleOfUserService, ModuleOfUserService>();
builder.Services.AddScoped<IUserRepService, UserRepService>();
builder.Services.AddScoped<IADService<ADGroup>, ADService<ADGroup>>();
builder.Services.AddDirectoryService();
var app = builder.Build();