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 String |
getTargetURL(String relayState)
Method is responsible for processing relayState and returning URL the system can redirect to.
|
void |
onAuthenticationSuccess(HttpServletRequest request,
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.
|
setRequestCacheclearAuthenticationAttributesdetermineTargetUrl, getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseRefererpublic void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws ServletException, IOException
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandleronAuthenticationSuccess in class org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandlerServletExceptionIOExceptionprotected String getTargetURL(String relayState)
relayState - relay state to process, can be null