Add authentication services and update configurations
- Added using directive for DigitalData.Auth.API.Models. - Removed obsolete service configuration line. - Introduced new service registrations: AddBackdoors, AddAuthService, and AddRSAPool. - Retained configuration for AuthApiParams to ensure settings are utilized.
This commit is contained in:
parent
c3794f1e65
commit
dae633b66d
@ -1,6 +1,7 @@
|
||||
using DigitalData.Auth.API.Config;
|
||||
using DigitalData.Auth.API.Entities;
|
||||
using DigitalData.Auth.API.Hubs;
|
||||
using DigitalData.Auth.API.Models;
|
||||
using DigitalData.Auth.API.Services;
|
||||
using DigitalData.Core.Abstractions.Security.Extensions;
|
||||
using DigitalData.Core.Abstractions.Security.Services;
|
||||
@ -31,7 +32,7 @@ try
|
||||
var apiParams = config.Get<AuthApiParams>() ?? throw new InvalidOperationException("AuthApiOptions is missing or invalid in appsettings.");
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.Configure<>
|
||||
builder.Services.AddBackdoors(config);
|
||||
builder.Services.Configure<AuthApiParams>(config);
|
||||
builder.Services.AddAuthService(config);
|
||||
builder.Services.AddRSAPool(config.GetSection("CryptParams"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user