Class AuthController

java.lang.Object
org.bh_foundation.e_sign.controllers.AuthController

@RestController @RequestMapping("/api/auth") public class AuthController extends Object
  • Constructor Details

    • AuthController

      public AuthController(AuthService authService)
  • 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.MessagingException
      IOException
    • 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.MessagingException
      IOException
    • forgotPassword

      @PostMapping("/forgot-password") public org.springframework.http.ResponseEntity<ResponseDto<?>> forgotPassword(@Email @RequestParam @Email String email) throws jakarta.mail.MessagingException, IOException
      Throws:
      jakarta.mail.MessagingException
      IOException
    • 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

      @PostMapping("/logout") public String logout()