Class DefaultUserLoginService
java.lang.Object
com.broadleafcommerce.auth.security.service.DefaultUserLoginService
- All Implemented Interfaces:
UserLoginService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultUserLoginService(OAuth2UserDetailsService userDetailsService, StatelessUtil sessionUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidautoLoginInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String clientId, String username, String password) protected StatelessUtilprotected OAuth2UserDetailsServicevoidloginUser(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String clientId, String username, String password) Login a user outside of the filter chain
-
Constructor Details
-
DefaultUserLoginService
public DefaultUserLoginService(OAuth2UserDetailsService userDetailsService, StatelessUtil sessionUtil)
-
-
Method Details
-
loginUser
public void loginUser(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String clientId, String username, String password) Description copied from interface:UserLoginServiceLogin a user outside of the filter chain- Specified by:
loginUserin interfaceUserLoginService- Parameters:
request- TheHttpServletRequestthat prompted the login requestresponse- TheHttpServletResponsefor the givenHttpServletRequestclientId- The client id that the user belongs tousername- The user's usernamepassword- The user's unencoded password
-
autoLoginInternal
-
getUserDetailsService
-
getSessionUtil
-