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

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

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

      @ActionAnnotation(title="auth", action="sendMobileCode", description="Send mobile code") @PostMapping("/send/mobile") public org.springframework.http.ResponseEntity<?> sendMobileCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
    • loginWithMobileCode

      @ActionAnnotation(title="auth", action="loginWithMobileCode", description="Login With mobile & code") @PostMapping("/login/mobile") public org.springframework.http.ResponseEntity<?> loginWithMobileCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
    • sendEmailCode

      @ActionAnnotation(title="auth", action="sendEmailCode", description="Send email code") @PostMapping("/send/email") public org.springframework.http.ResponseEntity<?> sendEmailCode(@RequestBody AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
    • loginWithEmailCode

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