public class SAMLRelayStateSuccessHandler
extends org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Class logger.
|
Constructor and Description |
---|
SAMLRelayStateSuccessHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getTargetURL(java.lang.String relayState)
Method is responsible for processing relayState and returning URL the system can redirect to.
|
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Implementation tries to load RelayString from the SAMLCredential authentication object and in case the state
is present uses it as the target URL.
|
setRequestCache
clearAuthenticationAttributes
determineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws javax.servlet.ServletException, java.io.IOException
onAuthenticationSuccess
in interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
onAuthenticationSuccess
in class org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler
javax.servlet.ServletException
java.io.IOException
protected java.lang.String getTargetURL(java.lang.String relayState)
relayState
- relay state to process, can be null