Class DefaultUserLoginService
- java.lang.Object
-
- com.broadleafcommerce.auth.security.service.DefaultUserLoginService
-
- All Implemented Interfaces:
UserLoginService
public class DefaultUserLoginService extends Object implements UserLoginService
-
-
Constructor Summary
Constructors Constructor Description DefaultUserLoginService(OAuth2UserDetailsService userDetailsService, StatelessUtil sessionUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidautoLoginInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String clientId, String username, String password)protected StatelessUtilgetSessionUtil()protected OAuth2UserDetailsServicegetUserDetailsService()voidloginUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String clientId, String username, String password)Login a user outside of the filter chain
-
-
-
Constructor Detail
-
DefaultUserLoginService
public DefaultUserLoginService(OAuth2UserDetailsService userDetailsService, StatelessUtil sessionUtil)
-
-
Method Detail
-
loginUser
public void loginUser(javax.servlet.http.HttpServletRequest request, javax.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
protected void autoLoginInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String clientId, String username, String password)
-
getUserDetailsService
protected OAuth2UserDetailsService getUserDetailsService()
-
getSessionUtil
protected StatelessUtil getSessionUtil()
-
-