com.force.sdk.springsecurity
Class AuthenticationSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
com.force.sdk.springsecurity.AuthenticationSuccessHandler
- All Implemented Interfaces:
- org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class AuthenticationSuccessHandler
- extends org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler
Called after a successful authentication. In this case that is after the access code callback is received.
The target URL is determined and the user is redirected there.
- Author:
- Fiaz Hossain, John Simone
Fields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler |
DEFAULT_TARGET_PARAMETER, logger |
Method Summary |
protected String |
determineTargetUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The target URL either comes from the state parameter in the callback request or the default target url is used. |
Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler |
clearAuthenticationAttributes, onAuthenticationSuccess |
Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler |
getDefaultTargetUrl, getRedirectStrategy, getTargetUrlParameter, handle, isAlwaysUseDefaultTargetUrl, setAlwaysUseDefaultTargetUrl, setDefaultTargetUrl, setRedirectStrategy, setTargetUrlParameter, setUseReferer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationSuccessHandler
public AuthenticationSuccessHandler()
- Default constructor. No default values set here.
AuthenticationSuccessHandler
public AuthenticationSuccessHandler(String defaultTargetUrl)
- Create with the given defaultTargetUrl.
- Parameters:
defaultTargetUrl
- the default URL to redirect to after
authentication
determineTargetUrl
protected String determineTargetUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- The target URL either comes from the state parameter in the callback request or the default target url is used.
The default target url is configured in the default-login-success attribute of the fss:oauth element.
See @doclink force-security for more information.
- Overrides:
determineTargetUrl
in class org.springframework.security.web.authentication.AbstractAuthenticationTargetUrlRequestHandler
Copyright © 2011. All Rights Reserved.