Feature/distribution #50

Merged
leon.hoppe merged 7 commits from feature/distribution into dev 2024-12-24 13:34:35 +01:00
Showing only changes of commit a323da829f - Show all commits

View File

@@ -28,9 +28,11 @@ public static class HopFrameAuthenticationExtensions {
service.AddScoped(typeof(ICacheProvider), config.CacheProvider);
service.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
service.AddScoped<ITokenContext, TokenContextImplementor>();
if (config.CacheProvider == typeof(MemoryCacheProvider))
service.AddMemoryCache();
service.AddHttpClient();
service.AddMemoryCache();
service.AddHttpClient<OpenIdAccessor>();
service.AddScoped<IOpenIdAccessor, OpenIdAccessor>();
service.AddOptionsFromConfiguration<HopFrameAuthenticationOptions>(configuration);