Class DefaultUserLoginService
java.lang.Object
com.broadleafcommerce.auth.security.service.DefaultUserLoginService
- All Implemented Interfaces:
UserLoginService
-
Constructor Summary
ConstructorDescriptionDefaultUserLoginService
(OAuth2UserDetailsService userDetailsService, StatelessUtil sessionUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
autoLoginInternal
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String clientId, String username, String password) protected StatelessUtil
protected OAuth2UserDetailsService
void
loginUser
(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: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
-
getUserDetailsService
-
getSessionUtil
-