:drunk: No idea what did AI did
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
using DysonNetwork.Pass.Features.Auth.Interfaces;
|
||||
using DysonNetwork.Pass.Features.Auth.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace DysonNetwork.Pass.Features.Auth;
|
||||
|
||||
public static class ServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection AddAuthServices(this IServiceCollection services)
|
||||
{
|
||||
// Core services
|
||||
services.AddScoped<ISessionService, SessionService>();
|
||||
services.AddScoped<IAuthenticationService, AuthenticationService>();
|
||||
|
||||
// OIDC services will be registered by their respective implementations
|
||||
services.AddScoped<IOidcService, OidcService>();
|
||||
|
||||
// Add HTTP context accessor if not already added
|
||||
services.AddHttpContextAccessor();
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user