constellation-api/CH.Authority/AuthorityModule.cs

22 lines
558 B
C#
Raw Normal View History

2025-01-02 17:53:38 -05:00
using CH.Authority.Services;
using Microsoft.Extensions.DependencyInjection;
using OpenHarbor.CQRS.Abstractions.Security;
using PoweredSoft.Module.Abstractions;
namespace CH.Authority;
public class AuthorityModule : IModule
{
public IServiceCollection ConfigureServices(IServiceCollection services)
{
services
.AddScoped<IQueryAuthorizationService, CQAuthorizationService>();
services
.AddScoped<ICommandAuthorizationService, CQAuthorizationService>();
services.AddScoped<UserIdentityService>();
return services;
}
}