Package com.bytedesk.core.rbac.auth
Class AuthController
java.lang.Object
com.bytedesk.core.rbac.auth.AuthController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.security.authentication.AuthenticationManager
private AuthService
private KaptchaCacheService
private PushRestService
private UserService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
loginWithEmailCode
(AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
loginWithMobileCode
(AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
loginWithUsernamePassword
(AuthRequest authRequest) org.springframework.http.ResponseEntity<?>
register
(UserRequest userRequest, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
sendEmailCode
(AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<?>
sendMobileCode
(AuthRequest authRequest, jakarta.servlet.http.HttpServletRequest request)
-
Field Details
-
userService
-
authService
-
pushService
-
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)
-