Skip to main content

AuthController

Base path/api/auth
ModuleAuth & Identity
Endpoints5
OpenAPI tagAuthentication
Sourcebackend/src/main/java/com/motorph/payroll/controller/AuthController.java

Endpoints​

MethodPathRequiresHandler
POST/api/auth/loginPublic — no authenticationlogin()
POST/api/auth/refreshPublic — no authenticationrefresh()
POST/api/auth/logoutPublic — no authenticationlogout()
GET/api/auth/meAny authenticated userme()
POST/api/auth/change-passwordAny authenticated userchangePassword()

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​

EntityTableTenant-scoped
EmployeeemployeeYes
Rolerole—
Userusers—
UserLoguser_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/.