fix(cqrs): implement missing auth service interfaces and fix tests
- Create RolePermissionService (delegates to AppPermissions) - Create AuthSignInService (wraps SignInManager) - Create AuthDataService (handles settings, first-user, token revocation) - Register all new services in Infrastructure DI - Fix AuthDataService RevokedRefreshToken constructor usage - All 226 tests passing
This commit is contained in:
1 parent
df644c8b2a
commit
6978d2e9ab
4 files changed
+102
No files matched your search
@@ -108,6 +108,15 @@ public static class DependencyInjection
|
||||
// Credential encryption
|
||||
services.AddScoped<ICredentialProtector, DataProtectorCredentialProtector>();
|
||||
|
||||
// Role permissions (used by CQRS auth handlers)
|
||||
services.AddScoped<IRolePermissionService, RolePermissionService>();
|
||||
|
||||
// Auth data service (used by CQRS register/refresh/logout handlers)
|
||||
services.AddScoped<IAuthDataService, AuthDataService>();
|
||||
|
||||
// Auth sign-in service (used by CQRS login handler)
|
||||
services.AddScoped<IAuthSignInService, AuthSignInService>();
|
||||
|
||||
// Data access
|
||||
services.AddScoped<IUserRepository, UserRepository>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user