Class LoginRest

java.lang.Object
io.meeds.social.security.rest.LoginRest

@RestController @RequestMapping("/login") public class LoginRest extends Object
  • Field Details

    • LOGIN_PATH

      public static final String LOGIN_PATH
      See Also:
    • ERROR_MESSAGE_PARAM

      public static final String ERROR_MESSAGE_PARAM
      See Also:
    • SUCCESS_MESSAGE_PARAM

      public static final String SUCCESS_MESSAGE_PARAM
      See Also:
    • CAPTCHA_WIDTH

      public static final int CAPTCHA_WIDTH
      See Also:
    • CAPTCHA_HEIGHT

      public static final int CAPTCHA_HEIGHT
      See Also:
    • ONBOARDING_EMAIL_SENT_MESSAGE

      public static final String ONBOARDING_EMAIL_SENT_MESSAGE
      See Also:
    • EMAIL_VERIFICATION_SENT

      public static final String EMAIL_VERIFICATION_SENT
      See Also:
    • ADMINISTRATORS_GROUP

      public static final String ADMINISTRATORS_GROUP
      See Also:
    • USERS_GROUP

      public static final String USERS_GROUP
      See Also:
    • EXTERNAL_USERS_GROUP

      public static final String EXTERNAL_USERS_GROUP
      See Also:
    • MEMBER

      public static final String MEMBER
      See Also:
    • LOCATION_HEADER

      public static final String LOCATION_HEADER
      See Also:
    • PASSWORD_VALIDATOR

      public static final org.exoplatform.portal.rest.UserFieldValidator PASSWORD_VALIDATOR
    • EMAIL_VALIDATOR

      public static final org.exoplatform.portal.rest.UserFieldValidator EMAIL_VALIDATOR
    • LASTNAME_VALIDATOR

      public static final org.exoplatform.portal.rest.UserFieldValidator LASTNAME_VALIDATOR
    • FIRSTNAME_VALIDATOR

      public static final org.exoplatform.portal.rest.UserFieldValidator FIRSTNAME_VALIDATOR
  • Constructor Details

    • LoginRest

      public LoginRest()
  • Method Details

    • verifyToken

      @GetMapping(path="/verify") public org.springframework.http.ResponseEntity<String> verifyToken(jakarta.servlet.http.HttpServletRequest request, @RequestParam("token") String token, @RequestParam(name="tokenType",required=false,defaultValue="") String tokenType)
    • finishRegistration

      @PostMapping(path="/finishRegistration") public org.springframework.http.ResponseEntity<String> finishRegistration(jakarta.servlet.http.HttpServletRequest request, @RequestParam("token") String token, @RequestParam(name="tokenType",required=false,defaultValue="") String tokenType)
    • serveCaptcha

      @GetMapping(path="/captcha") public org.springframework.http.ResponseEntity<byte[]> serveCaptcha(jakarta.servlet.http.HttpServletRequest request, @RequestParam("name") String name)
    • requestResetPassword

      @PostMapping(path="/requestResetPassword") public org.springframework.http.ResponseEntity<String> requestResetPassword(jakarta.servlet.http.HttpServletRequest request, @RequestParam("username") String username)
    • requestRegister

      @PostMapping(path="/requestRegister") public org.springframework.http.ResponseEntity<String> requestRegister(jakarta.servlet.http.HttpServletRequest request, @RequestParam("email") String email, @RequestParam("captcha") String captcha)
    • register

      @PostMapping(path="/register") public org.springframework.http.ResponseEntity<String> register(jakarta.servlet.http.HttpServletRequest request, @RequestParam("email") String email, @RequestParam("password") String password, @RequestParam("password2") String password2, @RequestParam("firstName") String firsname, @RequestParam("lastName") String lastname, @RequestParam("captcha") String captcha, @RequestParam("token") String token)
    • verifyEmail

      @PostMapping(path="/verifyEmail") public org.springframework.http.ResponseEntity<String> verifyEmail(jakarta.servlet.http.HttpServletRequest request, @RequestParam("email") String email, @RequestParam(name="username",required=false) String username, @RequestParam("password") String password, @RequestParam("password2") String password2, @RequestParam("firstName") String firsname, @RequestParam("lastName") String lastname, @RequestParam("captcha") String captcha, @RequestParam("token") String token)
    • resetPassword

      @PostMapping(path="/resetPassword") public org.springframework.http.ResponseEntity<String> resetPassword(jakarta.servlet.http.HttpServletRequest request, @RequestParam("username") String username, @RequestParam("password") String password, @RequestParam("password2") String password2, @RequestParam("token") String token)
    • setPassword

      @PostMapping(path="/setPassword") public org.springframework.http.ResponseEntity<String> setPassword(jakarta.servlet.http.HttpServletRequest request, @RequestParam("username") String username, @RequestParam("password") String password, @RequestParam("password2") String password2, @RequestParam("token") String token, @RequestParam("captcha") String captcha)