Class SecurityController

java.lang.Object
cronapp.framework.security.SecurityController

@RestController public class SecurityController extends Object
  • Constructor Details

    • SecurityController

      public SecurityController()
  • Method Details

    • token

      @RequestMapping(path="token", method=GET) public String token()
    • refresh

      @RequestMapping(path="auth/refresh", method=GET) public org.springframework.http.ResponseEntity<AuthenticationResponse> refresh(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request) throws org.springframework.security.core.AuthenticationException
      Throws:
      org.springframework.security.core.AuthenticationException
    • authProviders

      @RequestMapping(path="authproviders", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<List<AuthenticationMethod>> authProviders()
    • me

      @RequestMapping(path="me", method=GET) public org.springframework.http.ResponseEntity<AuthenticationResponse> me(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request) throws org.springframework.security.core.AuthenticationException
      Throws:
      org.springframework.security.core.AuthenticationException
    • signUp

      @PostMapping("auth/signup") public org.springframework.http.ResponseEntity<DefaultResponse> signUp(@RequestBody Var fields)
    • resetPassword

      @PostMapping("auth/reset-password") public org.springframework.http.ResponseEntity<String> resetPassword(@RequestParam("email") String email)
    • confirmResetPassword

      @PostMapping("auth/confirm-reset-password") public void confirmResetPassword(@RequestParam("password") String password, @RequestParam(value="otp",required=false) String otp, @RequestHeader("X-AUTH-TOKEN") String authToken, jakarta.servlet.http.HttpServletRequest request)