Interface WorkerAuthService
- All Known Implementing Classes:
WorkerAuthServiceImpl
public interface WorkerAuthService
Service for worker authentication.
-
Method Summary
Modifier and TypeMethodDescriptionLogs in the worker with the given fiscal code and password.register
(WorkerInput workerInput) Deprecated.
-
Method Details
-
login
LoginOutput login(String fiscalCode, String password) throws WrongPasswordException, WorkerNotFoundException Logs in the worker with the given fiscal code and password.- Parameters:
fiscalCode
- worker's fiscal codepassword
- worker's password- Returns:
LoginOutput
object containing the worker's JWTs- Throws:
WrongPasswordException
- if the password is wrongWorkerNotFoundException
- if the worker is not found
-
register
@Deprecated(since="0.0.1") LoginOutput register(WorkerInput workerInput) throws OfficeNotFoundException Deprecated.Registers the worker with the given input.- Parameters:
workerInput
- worker's data- Returns:
LoginOutput
object containing the worker's JWTs- Throws:
OfficeNotFoundException
- if the office is not found
-