AuthController
| Base path | /api/auth |
| Module | Auth & Identity |
| Endpoints | 5 |
| OpenAPI tag | Authentication |
| Source | backend/src/main/java/com/motorph/payroll/controller/AuthController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
POST | /api/auth/login | Public — no authentication | login() |
POST | /api/auth/refresh | Public — no authentication | refresh() |
POST | /api/auth/logout | Public — no authentication | logout() |
GET | /api/auth/me | Any authenticated user | me() |
POST | /api/auth/change-password | Any authenticated user | changePassword() |
Notes
POST /api/auth/change-password— Lets a user change their own password.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: AuthenticationManager, UserDetailsServiceImpl, LoginAttemptService, JwtTokenManager, RefreshTokenService, AuthTokenIssuer, AuditService, UserService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| Employee | employee | Yes |
| Role | role | — |
| User | users | — |
| UserLog | user_log | — |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.