public class DefaultUserLoginService extends Object implements UserLoginService
Constructor and Description |
---|
DefaultUserLoginService(OAuth2UserDetailsService userDetailsService,
StatelessUtil sessionUtil) |
Modifier and Type | Method and 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
|
public DefaultUserLoginService(OAuth2UserDetailsService userDetailsService, StatelessUtil sessionUtil)
public void loginUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String clientId, String username, String password)
UserLoginService
loginUser
in interface UserLoginService
request
- The HttpServletRequest
that prompted the login requestresponse
- The HttpServletResponse
for the given HttpServletRequest
clientId
- The client id that the user belongs tousername
- The user's usernamepassword
- The user's unencoded passwordprotected void autoLoginInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String clientId, String username, String password)
protected OAuth2UserDetailsService getUserDetailsService()
protected StatelessUtil getSessionUtil()
Copyright © 2021. All rights reserved.