public class CrowdSSOAuthenticationProcessingFilter extends AbstractCrowdSSOAuthenticationProcessingFilter
If single sign-on is not required, centralised authentication can still be achieved by using the default AuthenticationProcessingFilter in conjunction with the CrowdAuthenticationProvider.
clientProperties, SILENT_AUTHENTICATION_EXCEPTION_SWALLOWER, tokenHelper
Constructor and Description |
---|
CrowdSSOAuthenticationProcessingFilter(CrowdHttpTokenHelper tokenHelper,
CrowdClient crowdClient,
ClientProperties clientProperties) |
Modifier and Type | Method and Description |
---|---|
protected CookieConfiguration |
getCookieConfiguration() |
protected void |
onUnsuccessfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Remove any SSO tokens associated with the request, effectively logging the user out of Crowd.
|
void |
setHttpAuthenticator(CrowdHttpAuthenticator httpAuthenticator)
Mandatory dependency.
|
appendSuppliers, canUseSavedRequestToAuthenticate, doSetDetails, getAuthenticatedToken, getAuthenticationDetails, getSavedPath, requiresAuthentication, setDetails, setLoginUrlAuthenticationEntryPoint, setRequestToApplicationMapper, storeTokenIfCrowd, successfulAuthentication, unsuccessfulAuthentication
attemptAuthentication, getPasswordParameter, getUsernameParameter, obtainPassword, obtainUsername, setPasswordParameter, setPostOnly, setUsernameParameter
afterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy
public CrowdSSOAuthenticationProcessingFilter(CrowdHttpTokenHelper tokenHelper, CrowdClient crowdClient, ClientProperties clientProperties)
protected CookieConfiguration getCookieConfiguration() throws OperationFailedException, InvalidAuthenticationException, ApplicationPermissionException
protected void onUnsuccessfulAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AbstractCrowdSSOAuthenticationProcessingFilter
onUnsuccessfulAuthentication
in class AbstractCrowdSSOAuthenticationProcessingFilter
request
- servlet request.response
- servlet response.public void setHttpAuthenticator(CrowdHttpAuthenticator httpAuthenticator)
httpAuthenticator
- used to extract validation factors, set cookies and perform logouts.Copyright © 2021 Atlassian. All rights reserved.