feat(CryptoFactory): Hinzugefügt und in appsettings.json konfiguriert.

This commit is contained in:
Developer 02
2025-01-15 10:30:48 +01:00
parent 82f23d447b
commit f898d8c4a4
3 changed files with 35 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
using DigitalData.Auth.API.Config;
using DigitalData.Auth.API.Services;
using DigitalData.Core.Security;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;
@@ -16,6 +17,7 @@ var apiParams = config.Get<AuthApiParams>() ?? throw new InvalidOperationExcepti
// Add services to the container.
builder.Services.Configure<AuthApiParams>(config);
builder.Services.AddConsumerApiServiceFromConfiguration(config);
builder.Services.AddCryptoFactory(config.GetSection("CryptParams"));
builder.Services.AddControllers();
@@ -74,4 +76,4 @@ app.UseAuthorization();
app.MapControllers();
app.Run();
app.Run();