Class BroadleafOauthRegisterController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.account.BroadleafRegisterController
org.broadleafcommerce.core.web.controller.account.BroadleafOauthRegisterController
This is an extension of BroadleafRegisterController
that utilizes Spring Social to register a customer from a Service Provider
such as Facebook or Twitter.
To use: extend this class and provide @RequestMapping annotations
- Author:
- elbertbautista
- See Also:
-
Field Summary
Fields inherited from class org.broadleafcommerce.core.web.controller.account.BroadleafRegisterController
customerService, loginService, orderService, registerCustomerValidator, registerSuccessView, registerView, registrationService, useEmailForLogin -
Constructor Summary
ConstructorsConstructorDescriptionBroadleafOauthRegisterController(org.springframework.security.oauth2.client.OAuth2AuthorizedClientService authorizedClientService) -
Method Summary
Modifier and TypeMethodDescriptionprocessRegister(RegisterCustomerForm registerCustomerForm, org.springframework.validation.BindingResult errors, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) register(RegisterCustomerForm registerCustomerForm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) Methods inherited from class org.broadleafcommerce.core.web.controller.account.BroadleafRegisterController
getRegisterSuccessView, getRegisterView, initCustomerRegistrationForm, isUseEmailForLogin, processRegister, setUseEmailForLoginMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Constructor Details
-
BroadleafOauthRegisterController
public BroadleafOauthRegisterController(org.springframework.security.oauth2.client.OAuth2AuthorizedClientService authorizedClientService)
-
-
Method Details
-
register
@RequestMapping public String register(RegisterCustomerForm registerCustomerForm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) - Overrides:
registerin classBroadleafRegisterController
-
processRegister
@RequestMapping(params="action=register") public String processRegister(RegisterCustomerForm registerCustomerForm, org.springframework.validation.BindingResult errors, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws PricingException - Throws:
PricingException
-