Initial commit - Auth.RCL

This commit is contained in:
2026-08-05 21:16:00 +03:00
commit 062ff0146a
231 changed files with 15819 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Components.Authorization;
using Blazored.LocalStorage;
using Auth.RCL.Services;
namespace Auth.RCL.Config
{
public static class AuthModuleExtensions
{
public static IServiceCollection AuthModuleServices(this IServiceCollection services)
{
services.AddScoped<AuthenticationStateProvider, ApiAuthenticationStateProvider>();
// services.AddScoped<IAuthService>(sp => (ApiAuthenticationStateProvider)sp.GetRequiredService<AuthenticationStateProvider>());
services.AddScoped<RoleAPIConsumer>();
services.AddScoped<UserAPIConsumer>();
return services;
}
}
}