Package io.meeds.social.security.rest
Class LoginRest
java.lang.Object
io.meeds.social.security.rest.LoginRest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final org.exoplatform.portal.rest.UserFieldValidatorstatic final Stringstatic final Stringstatic final Stringstatic final org.exoplatform.portal.rest.UserFieldValidatorstatic final org.exoplatform.portal.rest.UserFieldValidatorstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.exoplatform.portal.rest.UserFieldValidatorstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String> finishRegistration(jakarta.servlet.http.HttpServletRequest request, String token, String tokenType) org.springframework.http.ResponseEntity<String> register(jakarta.servlet.http.HttpServletRequest request, String email, String password, String password2, String firsname, String lastname, String captcha, String token) org.springframework.http.ResponseEntity<String> requestRegister(jakarta.servlet.http.HttpServletRequest request, String email, String captcha) org.springframework.http.ResponseEntity<String> requestResetPassword(jakarta.servlet.http.HttpServletRequest request, String username) org.springframework.http.ResponseEntity<String> resetPassword(jakarta.servlet.http.HttpServletRequest request, String username, String password, String password2, String token) org.springframework.http.ResponseEntity<byte[]> serveCaptcha(jakarta.servlet.http.HttpServletRequest request, String name) org.springframework.http.ResponseEntity<String> setPassword(jakarta.servlet.http.HttpServletRequest request, String username, String password, String password2, String token, String captcha) org.springframework.http.ResponseEntity<String> verifyEmail(jakarta.servlet.http.HttpServletRequest request, String email, String username, String password, String password2, String firsname, String lastname, String captcha, String token) org.springframework.http.ResponseEntity<String> verifyToken(jakarta.servlet.http.HttpServletRequest request, String token, String tokenType)
-
Field Details
-
LOGIN_PATH
- See Also:
-
ERROR_MESSAGE_PARAM
- See Also:
-
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
- See Also:
-
EMAIL_VERIFICATION_SENT
- See Also:
-
ADMINISTRATORS_GROUP
- See Also:
-
USERS_GROUP
- See Also:
-
EXTERNAL_USERS_GROUP
- See Also:
-
MEMBER
- See Also:
-
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
-
finishRegistration
-
serveCaptcha
@GetMapping(path="/captcha") public org.springframework.http.ResponseEntity<byte[]> serveCaptcha(jakarta.servlet.http.HttpServletRequest request, @RequestParam("name") String name) -
requestResetPassword
-
requestRegister
-
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)
-