Class LocalCrowdSSOAuthenticationProcessingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
com.atlassian.crowd.integration.springsecurity.AbstractCrowdSSOAuthenticationProcessingFilter
com.atlassian.crowd.integration.springsecurity.AbstractLocalCrowdAuthenticationProcessingFilter
com.atlassian.crowd.integration.springsecurity.LocalCrowdSSOAuthenticationProcessingFilter
- All Implemented Interfaces:
javax.servlet.Filter
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.context.EnvironmentAware
,org.springframework.context.MessageSourceAware
,org.springframework.core.env.EnvironmentCapable
,org.springframework.web.context.ServletContextAware
public class LocalCrowdSSOAuthenticationProcessingFilter
extends AbstractLocalCrowdAuthenticationProcessingFilter
-
Field Summary
FieldsFields inherited from class com.atlassian.crowd.integration.springsecurity.AbstractLocalCrowdAuthenticationProcessingFilter
propertyManager, rememberMeService, tokenAuthenticationManager
Fields inherited from class com.atlassian.crowd.integration.springsecurity.AbstractCrowdSSOAuthenticationProcessingFilter
clientProperties, SILENT_AUTHENTICATION_EXCEPTION_SWALLOWER, tokenHelper
Fields inherited from class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
SPRING_SECURITY_FORM_PASSWORD_KEY, SPRING_SECURITY_FORM_USERNAME_KEY
Fields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
authenticationDetailsSource, eventPublisher, messages
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LocalCrowdSSOAuthenticationProcessingFilter
(ClientProperties clientProperties, CrowdHttpTokenHelper tokenHelper, PropertyManager propertyManager, TokenAuthenticationManager tokenAuthenticationManager, CrowdRememberMeService rememberMeService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) protected String
getSavedPath
(javax.servlet.http.HttpServletRequest request) protected String
obtainPassword
(javax.servlet.http.HttpServletRequest request) protected String
obtainUsername
(javax.servlet.http.HttpServletRequest request) 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.protected boolean
userWantsToBeRemembered
(javax.servlet.http.HttpServletRequest request) Methods inherited from class com.atlassian.crowd.integration.springsecurity.AbstractLocalCrowdAuthenticationProcessingFilter
appendSuppliers, clearRememberMeToken, getCookieConfiguration, successfulAuthentication
Methods inherited from class com.atlassian.crowd.integration.springsecurity.AbstractCrowdSSOAuthenticationProcessingFilter
canUseSavedRequestToAuthenticate, doSetDetails, getAuthenticatedToken, getAuthenticationDetails, requiresAuthentication, setDetails, setLoginUrlAuthenticationEntryPoint, setRequestToApplicationMapper, storeTokenIfCrowd, unsuccessfulAuthentication
Methods inherited from class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
attemptAuthentication, getPasswordParameter, getUsernameParameter, setPasswordParameter, setPostOnly, setUsernameParameter
Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
afterPropertiesSet, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSecurityContextHolderStrategy, setSecurityContextRepository, setSessionAuthenticationStrategy
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Field Details
-
PROTECTED_REST_ENDPOINTS_PATTERN
- See Also:
-
-
Constructor Details
-
LocalCrowdSSOAuthenticationProcessingFilter
protected LocalCrowdSSOAuthenticationProcessingFilter(ClientProperties clientProperties, CrowdHttpTokenHelper tokenHelper, PropertyManager propertyManager, TokenAuthenticationManager tokenAuthenticationManager, CrowdRememberMeService rememberMeService)
-
-
Method Details
-
onUnsuccessfulAuthentication
protected void onUnsuccessfulAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from class:AbstractCrowdSSOAuthenticationProcessingFilter
Remove any SSO tokens associated with the request, effectively logging the user out of Crowd.- Specified by:
onUnsuccessfulAuthentication
in classAbstractCrowdSSOAuthenticationProcessingFilter
- Parameters:
request
- servlet request.response
- servlet response.
-
obtainUsername
- Overrides:
obtainUsername
in classorg.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
-
obtainPassword
- Overrides:
obtainPassword
in classorg.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
-
userWantsToBeRemembered
protected boolean userWantsToBeRemembered(javax.servlet.http.HttpServletRequest request) - Specified by:
userWantsToBeRemembered
in classAbstractLocalCrowdAuthenticationProcessingFilter
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Overrides:
doFilter
in classorg.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
- Throws:
IOException
javax.servlet.ServletException
-
getSavedPath
- Overrides:
getSavedPath
in classAbstractCrowdSSOAuthenticationProcessingFilter
-