Class LoginRest
java.lang.Object
io.meeds.social.security.rest.LoginRest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe login page's error code telling a registrant whose account was created that its additional fields were not savedstatic 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 StringThe login page's error code telling an invited user whose password was set that the additional fields were not savedstatic final org.exoplatform.portal.rest.UserFieldValidatorstatic final StringThe registration's parameter carrying the additional profile fieldsstatic final StringThe attribute a refused additional field names, beside the error codestatic 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<OnboardingFieldsEntity> getOnboardingFields(jakarta.servlet.http.HttpServletRequest request, String token) org.springframework.http.ResponseEntity<List<RegistrationFieldEntity>> getRegistrationFields(jakarta.servlet.http.HttpServletRequest request, String token) 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, String profileProperties) org.springframework.http.ResponseEntity<String> requestRegister(jakarta.servlet.http.HttpServletRequest request, String email, String captcha, String initialURI) 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, String profileProperties) 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:
-
PROFILE_PROPERTIES_PARAM
The registration's parameter carrying the additional profile fields- See Also:
-
PROPERTY_NAME_PARAM
The attribute a refused additional field names, beside the error code- See Also:
-
ADDITIONAL_FIELDS_NOT_SAVED
The login page's error code telling a registrant whose account was created that its additional fields were not saved- See Also:
-
ONBOARDING_FIELDS_NOT_SAVED
The login page's error code telling an invited user whose password was set that the additional fields were not saved- 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
-
getRegistrationFields
@GetMapping(path="/registrationFields", produces="application/json") public org.springframework.http.ResponseEntity<List<RegistrationFieldEntity>> getRegistrationFields(jakarta.servlet.http.HttpServletRequest request, @RequestParam("token") String token) -
getOnboardingFields
@GetMapping(path="/onboardingFields", produces="application/json") public org.springframework.http.ResponseEntity<OnboardingFieldsEntity> getOnboardingFields(jakarta.servlet.http.HttpServletRequest request, @RequestParam("token") String token) -
finishRegistration
-
serveCaptcha
@GetMapping(path="/captcha") public org.springframework.http.ResponseEntity<byte[]> serveCaptcha(jakarta.servlet.http.HttpServletRequest request, @RequestParam("name") String name) -
requestResetPassword
-
requestRegister
@PostMapping(path="/requestRegister") public org.springframework.http.ResponseEntity<String> requestRegister(jakarta.servlet.http.HttpServletRequest request, @RequestParam("email") String email, @RequestParam("captcha") String captcha, @RequestParam(value="initialURI",required=false) String initialURI) -
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, @RequestParam(name="profileProperties",required=false) String profileProperties) -
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, @RequestParam(name="profileProperties",required=false) String profileProperties)
-