Class AuthController
java.lang.Object
org.bh_foundation.e_sign.controllers.AuthController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ResponseDto<?>> forgotPassword(@Email String email) org.springframework.http.ResponseEntity<?> logout()org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<ResponseDto<?>> resetPassword(String token, String password) org.springframework.http.ResponseEntity<Boolean> validate()org.springframework.http.ResponseEntity<?> validateResetPasswordToken(String token) org.springframework.http.ResponseEntity<?>
-
Constructor Details
-
AuthController
-
-
Method Details
-
login
@PostMapping("/login") public org.springframework.http.ResponseEntity<?> login(@Valid @RequestBody @Valid User request, org.springframework.validation.BindingResult result) -
refreshAuth
@PostMapping("/refresh-auth") public org.springframework.http.ResponseEntity<?> refreshAuth() -
validate
@PostMapping("/validate-expiration") public org.springframework.http.ResponseEntity<Boolean> validate() -
register
@PostMapping("/register") public org.springframework.http.ResponseEntity<?> register(@Valid @RequestBody @Valid User request, org.springframework.validation.BindingResult result) throws jakarta.mail.MessagingException, IOException - Throws:
jakarta.mail.MessagingExceptionIOException
-
verificationWithOtp
@PostMapping("/verification-with-otp") public org.springframework.http.ResponseEntity<?> verificationWithOtp(@RequestParam String otp) -
resendVerification
@GetMapping("/verification/resend") public org.springframework.http.ResponseEntity<?> resendVerification() throws jakarta.mail.MessagingException, IOException- Throws:
jakarta.mail.MessagingExceptionIOException
-
forgotPassword
@PostMapping("/forgot-password") public org.springframework.http.ResponseEntity<ResponseDto<?>> forgotPassword(@Email @RequestParam @Email String email) throws jakarta.mail.MessagingException, IOException - Throws:
jakarta.mail.MessagingExceptionIOException
-
resetPassword
@PostMapping("/reset-password/{token}") public org.springframework.http.ResponseEntity<ResponseDto<?>> resetPassword(@PathVariable String token, @RequestParam String password) -
validateResetPasswordToken
@PostMapping("/validate-reset-password-token") public org.springframework.http.ResponseEntity<?> validateResetPasswordToken(@RequestParam String token) -
logout
-