[REFACTOR] Reworking auth implementation

This commit is contained in:
max
2024-12-16 02:34:30 +01:00
parent eb277e0937
commit e8438c807d
8 changed files with 81 additions and 30 deletions

View File

@@ -23,9 +23,6 @@ public static class DotBasedAuthDependencyInjection
if (Configuration.AuthDataRepositoryType == null)
throw new ArgumentNullException(nameof(Configuration.AuthDataRepositoryType), $"No '{nameof(IAuthDataRepository)}' configured!");
services.AddScoped(typeof(IAuthDataRepository), Configuration.AuthDataRepositoryType);
/*if (Configuration.SessionStateProviderType == null)
throw new ArgumentNullException(nameof(Configuration.SessionStateProviderType), $"No '{nameof(ISessionStateProvider)}' configured!");
services.AddScoped(typeof(ISessionStateProvider), Configuration.SessionStateProviderType);*/
services.AddSingleton<AuthDataCache>();
services.AddScoped<SecurityService>();