Initial commit - Auth.RCL
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user