Class ConfigAwareAuthenticationSuccessHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
- org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
-
- org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
-
- org.craftercms.engine.util.spring.security.ConfigAwareAuthenticationSuccessHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class ConfigAwareAuthenticationSuccessHandler extends org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
Extension ofSavedRequestAwareAuthenticationSuccessHandler
that uses site config to override properties- Since:
- 3.1.5
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOGIN_ALWAYS_USE_DEFAULT_SUCCESS_URL_KEY
static String
LOGIN_DEFAULT_SUCCESS_URL_KEY
-
Constructor Summary
Constructors Constructor Description ConfigAwareAuthenticationSuccessHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
determineTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected boolean
isAlwaysUseDefaultTargetUrl()
-
Methods inherited from class org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
onAuthenticationSuccess, setRequestCache
-
Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
clearAuthenticationAttributes
-
Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
-
-
-
-
Field Detail
-
LOGIN_DEFAULT_SUCCESS_URL_KEY
public static final String LOGIN_DEFAULT_SUCCESS_URL_KEY
- See Also:
- Constant Field Values
-
LOGIN_ALWAYS_USE_DEFAULT_SUCCESS_URL_KEY
public static final String LOGIN_ALWAYS_USE_DEFAULT_SUCCESS_URL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
determineTargetUrl
protected String determineTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Overrides:
determineTargetUrl
in classorg.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
isAlwaysUseDefaultTargetUrl
protected boolean isAlwaysUseDefaultTargetUrl()
- Overrides:
isAlwaysUseDefaultTargetUrl
in classorg.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
-
-