TIDE/backend/app/Auth
yisroel 5b74e9d76a
implement AuthenticateUser use case
input validation: email + password required. constructs
EmailAddress vo (BadRequest on bad format). looks up user; absent
or password-mismatch -> UnauthorizedException with constant
'invalid credentials' message (no enumeration leak). password
verified through PasswordHasher->verify against stored hash on
the User entity (no separate profile lookup -> tide keeps
password on the user row). returns the User entity for the
caller (typically CreateSession + AuthController). 27 tests
pass.
2026-05-06 15:14:34 +03:00
..
UseCases/AuthenticateUser implement AuthenticateUser use case 2026-05-06 15:14:34 +03:00
BcryptPasswordHasher.php add auth utility interfaces and impls 2026-05-06 15:11:19 +03:00
Clock.php add auth utility interfaces and impls 2026-05-06 15:11:19 +03:00
CreateSessionDto.php add Session entity, persistence, fake 2026-05-06 15:12:07 +03:00
EloquentSessionRepository.php add Session entity, persistence, fake 2026-05-06 15:12:07 +03:00
PasswordHasher.php add auth utility interfaces and impls 2026-05-06 15:11:19 +03:00
RandomTokenGenerator.php add auth utility interfaces and impls 2026-05-06 15:11:19 +03:00
Session.php add Session entity, persistence, fake 2026-05-06 15:12:07 +03:00
SessionModel.php add Session entity, persistence, fake 2026-05-06 15:12:07 +03:00
SessionRepository.php add Session entity, persistence, fake 2026-05-06 15:12:07 +03:00
SystemClock.php add auth utility interfaces and impls 2026-05-06 15:11:19 +03:00
TokenGenerator.php add auth utility interfaces and impls 2026-05-06 15:11:19 +03:00