Class AuthController

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

@RestController @RequestMapping("/auth/v1") public class AuthController extends Object
  • Field Details

    • userService

      private UserService userService
    • authService

      private AuthService authService
    • pushService

      private PushRestService pushService
    • kaptchaCacheService

      private KaptchaCacheService kaptchaCacheService
    • authenticationManager

      private org.springframework.security.authentication.AuthenticationManager authenticationManager
  • Constructor Details

    • AuthController

      public AuthController()
  • Method Details

    • register

      @PostMapping("/register") public org.springframework.http.ResponseEntity<?> register(@RequestBody UserRequest userRequest, jakarta.servlet.http.HttpServletRequest request)
    • loginWithUsernamePassword

      @PostMapping("/login") @ActionAnnotation(title="\u7528\u6237", action="\u5bc6\u7801\u767b\u5f55", description="Login With Username & Password") public org.springframework.http.ResponseEntity<?> loginWithUsernamePassword(@RequestBody AuthRequest authRequest)
    • sendMobileCode

      @PostMapping("/send/mobile") public org.springframework.http.ResponseEntity<?> sendMobileCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
    • loginWithMobileCode

      @PostMapping("/login/mobile") public org.springframework.http.ResponseEntity<?> loginWithMobileCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
    • sendEmailCode

      @PostMapping("/send/email") public org.springframework.http.ResponseEntity<?> sendEmailCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
    • loginWithEmailCode

      @ActionAnnotation(title="\u7528\u6237", action="\u90ae\u7bb1\u767b\u5f55", description="Login With email & code") @PostMapping("/login/email") public org.springframework.http.ResponseEntity<?> loginWithEmailCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)