|
|
34b714750a
|
feat(api): UDT-004 dominio + repositorio + application roles (tdd)
- Migraciones V003 (tabla Rol + 8 seeds canonicos) y V004 (drop CK + FK Usuario.Rol)
- Dominio: Rol entity + 3 excepciones (RolNotFound/AlreadyExists/InUse)
- Infraestructura: RolRepository (Dapper) con List/Get/ExistsActive/Add/Update/HasActiveUsuarios
- Application: CRUD queries y commands (List, Get, Create, Update, Deactivate) + validators (codigo regex ^[a-z][a-z0-9_]*$)
- Validator UDT-003: whitelist alineada a codigos canonicos (full IRolRepository lookup diferido a Phase 5.1)
- Tests: 169 application + 15 api (todos verdes). Respawn configurado para re-seedear Rol canonical post-reset.
- Estricto TDD: RED/GREEN/TRIANGULATE en todos los handlers nuevos.
|
2026-04-15 12:31:29 -03:00 |
|
|
|
3d598faffc
|
feat(api): UDT-003 registro de usuarios — backend completo (Phases 1-6)
- Domain: Usuario.ForCreation factory, UsernameAlreadyExistsException, IUsuarioRepository extendido
- Application: CreateUsuarioCommand/Validator/Handler, UsuarioCreatedDto, AuthOptions password policy
- Infrastructure: UsuarioRepository.ExistsByUsernameAsync + AddAsync (INSERT OUTPUT INSERTED.Id), RoleClaimType="rol" en TokenValidationParameters
- Api: UsuariosController POST api/v1/users [Authorize(Roles="admin")], ExceptionFilter mapea UsernameAlreadyExistsException + SqlException 2627 → 409
- Tests (unit): 43 tests — 33 validator + 10 handler (107 total, green)
- Tests (integration): 7 tests CreateUsuarioEndpoint — 401/403/400/201/409/race/e2e (green)
- Fix: TestWebAppFactory.ConfigureTestServices reemplaza SqlConnectionFactory singleton con CS de test correcto
|
2026-04-15 10:47:48 -03:00 |
|
|
|
aed26e3de9
|
feat(infra): register RefreshTokenRepository, RefreshTokenGenerator, ClientContext and handlers in DI
|
2026-04-14 13:28:36 -03:00 |
|
|
|
8bbd2b6f2a
|
feat(app): update LoginCommandHandler to persist hashed refresh token on login
|
2026-04-14 13:28:16 -03:00 |
|
|
|
6c02197369
|
feat(app): implement LogoutCommand handler with idempotent revocation
|
2026-04-14 13:28:10 -03:00 |
|
|
|
f5e67b78a5
|
feat(app): implement RefreshCommand handler with token rotation and chain revocation
|
2026-04-14 13:28:06 -03:00 |
|
|
|
971f6f572f
|
feat(app): add IClientContext abstraction for IP and UserAgent
|
2026-04-14 13:17:12 -03:00 |
|
|
|
84006776b6
|
feat(app): add IRefreshTokenGenerator abstraction
|
2026-04-14 13:17:12 -03:00 |
|
|
|
802c89ffe5
|
feat(app): add IRefreshTokenRepository abstraction
|
2026-04-14 13:17:11 -03:00 |
|
|
|
ba6dffb137
|
feat(app): extend IJwtService with GetPrincipalFromExpiredToken
|
2026-04-14 13:17:11 -03:00 |
|
|
|
8c26cd3ac5
|
feat(udt-001): application layer with LoginCommandHandler and ports
|
2026-04-13 21:36:01 -03:00 |
|