Added user management endpoints

This commit is contained in:
2026-10-10 10:12:13 +02:00
parent 1ebd83a2f4
commit 2ee7a49122
19 changed files with 688 additions and 40 deletions
@@ -32,12 +32,15 @@ public static class Security
client.ClientSecret = ClientSecret.Parse(authOptions.ClientSecret!);
client.Scope = Duende.AccessTokenManagement.Scope.ParseOrDefault(authOptions.Scope);
});
services.AddHttpClient(SkorubaHttpClient, client =>
{
client.BaseAddress = new Uri(configuration.GetConnectionString("SkorubaApi")!);
}).AddClientCredentialsTokenHandler(ClientCredentialsClientName.Parse(SkorubaCredentialClient));
services.AddKeyedScoped(SkorubaHttpClient, (provider, key) =>
provider.GetRequiredService<IHttpClientFactory>());
services.AddScoped<AuditInterceptor>();
services.AddScoped<LoggingInterceptor>();
services.AddSingleton<ProxyGenerator>();