All Known Implementing Classes:
AuthServiceImpl

public interface AuthService
Authentication service interface for managing authentication and registration.
Version:
1.0
Author:
Mirna Gama
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    login(UserDTO userDTO)
    Performs the user login
    register(UserDTO userDTO)
    Performs the user registration
  • Method Details

    • login

      org.springframework.security.core.Authentication login(UserDTO userDTO)
      Performs the user login
      Parameters:
      userDTO - Data transfer object containing user credentials for authentication operations
      Returns:
      A fully authentication object including the credentials
    • register

      User register(UserDTO userDTO)
      Performs the user registration
      Parameters:
      userDTO - Data transfer object containing user credentials for authentication operations
      Returns:
      A user object including the credentials