Class AuthService

java.lang.Object
com.bytedesk.core.rbac.auth.AuthService

@Service public class AuthService extends Object
https://www.baeldung.com/get-user-in-spring-security
  • Field Details

    • jwtUtils

      private JwtUtils jwtUtils
    • userDetailsService

      private UserDetailsServiceImpl userDetailsService
    • modelMapper

      private org.modelmapper.ModelMapper modelMapper
  • Constructor Details

    • AuthService

      public AuthService()
  • Method Details

    • getUser

      public UserEntity getUser()
    • getAuthentication

      public org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthentication(@NonNull jakarta.servlet.http.HttpServletRequest request, String subject)
    • authenticationWithMobileAndPlatform

      public AuthToken authenticationWithMobileAndPlatform(String mobile, String platform)
    • authenticationWithEmailAndPlatform

      public AuthToken authenticationWithEmailAndPlatform(String email, String platform)
    • formatResponse

      public AuthResponse formatResponse(org.springframework.security.core.Authentication authentication)