Class AuthenticationRestController

java.lang.Object
transmatter.platform.administration.security.controller.AuthenticationRestController

@RestController @CrossOrigin public class AuthenticationRestController extends Object
  • Field Details

    • tokenHeader

      @Value("${jwt.header}") private String tokenHeader
    • authenticationManager

      @Autowired private org.springframework.security.authentication.AuthenticationManager authenticationManager
    • jwtTokenUtil

      @Autowired private JwtTokenUtil jwtTokenUtil
    • userDetailsService

      @Autowired private org.springframework.security.core.userdetails.UserDetailsService userDetailsService
    • userService

      @Autowired UserService userService
    • emailService

      @Autowired EmailService emailService
    • authorityRepository

      @Autowired AuthorityRepository authorityRepository
  • Constructor Details

    • AuthenticationRestController

      public AuthenticationRestController()
  • Method Details

    • createAuthenticationToken

      @PostMapping("${jwt.route.authentication.path}") public org.springframework.http.ResponseEntity<?> createAuthenticationToken(@RequestBody JwtAuthenticationRequest authenticationRequest, org.springframework.mobile.device.Device device) throws org.springframework.security.core.AuthenticationException
      Throws:
      org.springframework.security.core.AuthenticationException
    • refreshAndGetAuthenticationToken

      @GetMapping("${jwt.route.authentication.refresh}") public org.springframework.http.ResponseEntity<?> refreshAndGetAuthenticationToken(javax.servlet.http.HttpServletRequest request)
    • addUser

      @PostMapping("${jwt.route.register.path}") public org.springframework.http.ResponseEntity<?> addUser(@RequestBody JwtAuthenticationRequest authenticationRequest, org.springframework.mobile.device.Device device) throws org.springframework.security.core.AuthenticationException, javax.mail.MessagingException, IOException
      Throws:
      org.springframework.security.core.AuthenticationException
      javax.mail.MessagingException
      IOException