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 void
autoLoginInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String clientId, String username, String password)
protected StatelessUtil
getSessionUtil()
protected OAuth2UserDetailsService
getUserDetailsService()
void
loginUser(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:UserLoginService
Login a user outside of the filter chain- Specified by:
loginUser
in interfaceUserLoginService
- Parameters:
request
- TheHttpServletRequest
that prompted the login requestresponse
- TheHttpServletResponse
for the givenHttpServletRequest
clientId
- 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()
-
-