Class LoginAnonymousService

java.lang.Object
es.kukenan.smartfi.microservice.clients.service.login.LoginAnonymousService
All Implemented Interfaces:
LoginServiceStrategy

@Service public class LoginAnonymousService extends Object implements LoginServiceStrategy
Service for login annymous.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private es.kukenan.smartfi.common.service.jwt.JwtService
    Service JwtService.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    es.kukenan.smartfi.microservice.clients.dto.LoginResponseDto
    login(es.kukenan.smartfi.microservice.clients.dto.LoginDto loginDto, UserLog userLog)
    Post login action for login anonymous.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • jwtService

      @Autowired private es.kukenan.smartfi.common.service.jwt.JwtService jwtService
      Service JwtService.
  • Constructor Details

    • LoginAnonymousService

      public LoginAnonymousService()
  • Method Details

    • login

      public es.kukenan.smartfi.microservice.clients.dto.LoginResponseDto login(es.kukenan.smartfi.microservice.clients.dto.LoginDto loginDto, UserLog userLog)
      Post login action for login anonymous.
      Specified by:
      login in interface LoginServiceStrategy
      Parameters:
      loginDto - Request object which contains company_id of user anonymous.
      userLog - Bean for auditory log.
      Returns:
      JWT Token if user is authenticated. if authentication fail then show define error message.