:drunk: No idea what did AI did

This commit is contained in:
2025-07-06 19:46:59 +08:00
parent 14b79f16f4
commit 3391c08c04
40 changed files with 2484 additions and 112 deletions

View File

@ -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;
}
}