@FrameworkController @FrameworkMapping(value="/register") public class RegistrationFormController extends Object
for handling embedded login.| Modifier and Type | Field and Description |
|---|---|
static String |
REGISTER_VIEW |
| Constructor and Description |
|---|
RegistrationFormController(UserRegistrationService<User> registrationService,
AuthenticationLogoutHandler authenticationLogoutHandler,
AuthorizedClientService<AuthorizedClient> clientService,
UserLoginProperties properties,
ClientRedirectService redirectService,
UserLoginService loginService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributesToForm(org.springframework.util.MultiValueMap<String,String> attributes,
UserRegistration userRegistration)
Adds attributes from the request parameter MultiValueMap to the user registration form.
|
protected void |
addFlashAttributesToModel(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model)
Add flash attributes passed from the /submit endpoint to the Model
|
protected void |
addFlashAttributeToModel(org.springframework.ui.Model model,
Map<String,?> inputFlashMap,
String attributeKey)
Add a flash attribute to the model if it exists.
|
protected String |
determineLoggedInReturnUrl(UserRegistration userRegistration) |
protected AuthenticationLogoutHandler |
getAuthenticationLogoutHandler() |
protected AuthorizedClientService<AuthorizedClient> |
getClientService() |
protected UserLoginService |
getLoginService() |
protected UserLoginProperties |
getProperties() |
protected ClientRedirectService |
getRedirectService() |
protected UserRegistrationService<User> |
getRegistrationService() |
org.springframework.web.servlet.view.RedirectView |
registerUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String clientId,
UserRegistration userRegistration,
org.springframework.validation.BindingResult bindingResult,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
String |
showRegisterForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String clientId,
String redirectUrl,
UserRegistration userRegistration,
org.springframework.validation.BindingResult bindingResult,
org.springframework.util.MultiValueMap<String,String> attributes) |
public static final String REGISTER_VIEW
public RegistrationFormController(UserRegistrationService<User> registrationService, AuthenticationLogoutHandler authenticationLogoutHandler, AuthorizedClientService<AuthorizedClient> clientService, UserLoginProperties properties, ClientRedirectService redirectService, UserLoginService loginService)
@FrameworkGetMapping public String showRegisterForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @RequestParam(value="client_id") String clientId, @RequestParam(value="returnTo",required=false) String redirectUrl, @ModelAttribute UserRegistration userRegistration, org.springframework.validation.BindingResult bindingResult, @RequestParam org.springframework.util.MultiValueMap<String,String> attributes)
protected void addAttributesToForm(org.springframework.util.MultiValueMap<String,String> attributes, UserRegistration userRegistration)
attributes - userRegistration - @FrameworkPostMapping(value="/submit")
public org.springframework.web.servlet.view.RedirectView registerUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@RequestParam(value="client_id")
String clientId,
@ModelAttribute
UserRegistration userRegistration,
org.springframework.validation.BindingResult bindingResult,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
protected String determineLoggedInReturnUrl(UserRegistration userRegistration)
protected void addFlashAttributesToModel(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model)
request - model - protected void addFlashAttributeToModel(org.springframework.ui.Model model,
Map<String,?> inputFlashMap,
String attributeKey)
model - inputFlashMap - attributeKey - protected UserRegistrationService<User> getRegistrationService()
protected AuthenticationLogoutHandler getAuthenticationLogoutHandler()
protected AuthorizedClientService<AuthorizedClient> getClientService()
protected UserLoginProperties getProperties()
protected ClientRedirectService getRedirectService()
protected UserLoginService getLoginService()
Copyright © 2021. All rights reserved.