Goal-Calibration/app/Auth
Yisroel Baum b1247d2fa1
add PasswordHasher interface with bcrypt implementation
Introduce an injectable abstraction over password_hash and
password_verify so callers can be swapped for a fast fake in tests
without paying bcrypt's CPU cost. The bcrypt implementation is a
direct passthrough using PASSWORD_DEFAULT, matching the prior inline
behavior, so existing stored hashes continue to verify.

Wired into the DI container alongside the other auth primitives
(Clock, TokenGenerator). No callers reference it yet, so production
behavior is unchanged.
2026-04-26 09:06:17 +03:00
..
UseCases add create session use case 2026-04-24 13:24:21 +03:00
AdminMiddleware.php add admin middleware 2026-04-24 13:26:38 +03:00
AuthController.php add auth controller 2026-04-24 13:28:22 +03:00
AuthMiddleware.php add auth middleware 2026-04-24 13:25:36 +03:00
BcryptPasswordHasher.php add PasswordHasher interface with bcrypt implementation 2026-04-26 09:06:17 +03:00
Clock.php add clock interface 2026-04-24 13:23:30 +03:00
CreateSessionDto.php add create session dto 2026-04-24 13:21:28 +03:00
JsonSessionRepository.php add json session repository 2026-04-24 13:22:19 +03:00
PasswordHasher.php add PasswordHasher interface with bcrypt implementation 2026-04-26 09:06:17 +03:00
RandomTokenGenerator.php add random token generator 2026-04-24 13:23:12 +03:00
Session.php add session entity 2026-04-24 13:21:20 +03:00
SessionRepository.php add session repository interface 2026-04-24 13:21:37 +03:00
SystemClock.php add system clock 2026-04-24 13:23:38 +03:00
TokenGenerator.php add token generator interface 2026-04-24 13:23:05 +03:00