public class LoginSuccessHandlerImpl extends Object implements LoginSuccessHandler
LoginSuccessHandler
:
RequestCache
to obtain the previous request before login and redirect to it.Modifier and Type | Field and Description |
---|---|
protected boolean |
alwaysUseDefaultTargetUrl |
protected String |
defaultTargetUrl |
protected org.springframework.security.web.savedrequest.RequestCache |
requestCache |
Constructor and Description |
---|
LoginSuccessHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultTargetUrl() |
void |
handle(org.craftercms.commons.http.RequestContext context,
Authentication authentication)
Handles the request after a successful authentication.
|
protected boolean |
isAlwaysUseDefaultTargetUrl() |
protected void |
redirectToSavedRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setAlwaysUseDefaultTargetUrl(boolean alwaysUseDefaultTargetUrl) |
void |
setDefaultTargetUrl(String defaultTargetUrl) |
void |
setRequestCache(org.springframework.security.web.savedrequest.RequestCache requestCache) |
protected org.springframework.security.web.savedrequest.RequestCache requestCache
protected String defaultTargetUrl
protected boolean alwaysUseDefaultTargetUrl
public void setRequestCache(org.springframework.security.web.savedrequest.RequestCache requestCache)
public void setDefaultTargetUrl(String defaultTargetUrl)
protected String getDefaultTargetUrl()
public void setAlwaysUseDefaultTargetUrl(boolean alwaysUseDefaultTargetUrl)
protected boolean isAlwaysUseDefaultTargetUrl()
public void handle(org.craftercms.commons.http.RequestContext context, Authentication authentication) throws SecurityProviderException, IOException
LoginSuccessHandler
handle
in interface LoginSuccessHandler
context
- the request contextauthentication
- the authentication objectSecurityProviderException
IOException
protected void redirectToSavedRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
Copyright © 2023 CrafterCMS. All rights reserved.