Class AbstractLocalCrowdAuthenticationProcessingFilter
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
- All Implemented Interfaces:
jakarta.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
- Direct Known Subclasses:
LocalCrowdSSOAuthenticationProcessingFilter
public abstract class AbstractLocalCrowdAuthenticationProcessingFilter
extends AbstractCrowdSSOAuthenticationProcessingFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PropertyManagerprotected final CrowdRememberMeServiceprotected final TokenAuthenticationManagerFields inherited from class com.atlassian.crowd.integration.springsecurity.AbstractCrowdSSOAuthenticationProcessingFilter
clientProperties, SILENT_AUTHENTICATION_EXCEPTION_SWALLOWER, tokenHelperFields inherited from class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
SPRING_SECURITY_FORM_PASSWORD_KEY, SPRING_SECURITY_FORM_USERNAME_KEYFields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
authenticationDetailsSource, eventPublisher, messages -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractLocalCrowdAuthenticationProcessingFilter(ClientProperties clientProperties, CrowdHttpTokenHelper tokenHelper, PropertyManager propertyManager, TokenAuthenticationManager tokenAuthenticationManager, CrowdRememberMeService rememberMeService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendSuppliers(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.google.common.collect.ImmutableList.Builder<org.apache.commons.lang3.tuple.Pair<Supplier<org.springframework.security.authentication.AbstractAuthenticationToken>, Consumer<org.springframework.security.core.AuthenticationException>>> builder) protected voidclearRememberMeToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected CookieConfigurationprotected voidsuccessfulAuthentication(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain, org.springframework.security.core.Authentication authResult) Attempts to write out the successful SSO token to a cookie, if an SSO token was generated and stored via the AuthenticationProvider.protected abstract booleanuserWantsToBeRemembered(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class com.atlassian.crowd.integration.springsecurity.AbstractCrowdSSOAuthenticationProcessingFilter
canUseSavedRequestToAuthenticate, doSetDetails, getAuthenticatedToken, getAuthenticationDetails, getSavedPath, onUnsuccessfulAuthentication, requiresAuthentication, setDetails, setLoginUrlAuthenticationEntryPoint, setRequestToApplicationMapper, storeTokenIfCrowd, unsuccessfulAuthenticationMethods inherited from class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
attemptAuthentication, getPasswordParameter, getUsernameParameter, obtainPassword, obtainUsername, setPasswordParameter, setPostOnly, setUsernameParameterMethods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
afterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSecurityContextHolderStrategy, setSecurityContextRepository, setSessionAuthenticationStrategyMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Field Details
-
propertyManager
-
tokenAuthenticationManager
-
rememberMeService
-
-
Constructor Details
-
AbstractLocalCrowdAuthenticationProcessingFilter
protected AbstractLocalCrowdAuthenticationProcessingFilter(ClientProperties clientProperties, CrowdHttpTokenHelper tokenHelper, PropertyManager propertyManager, TokenAuthenticationManager tokenAuthenticationManager, CrowdRememberMeService rememberMeService)
-
-
Method Details
-
getCookieConfiguration
- Specified by:
getCookieConfigurationin classAbstractCrowdSSOAuthenticationProcessingFilter
-
appendSuppliers
protected void appendSuppliers(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.google.common.collect.ImmutableList.Builder<org.apache.commons.lang3.tuple.Pair<Supplier<org.springframework.security.authentication.AbstractAuthenticationToken>, Consumer<org.springframework.security.core.AuthenticationException>>> builder) - Overrides:
appendSuppliersin classAbstractCrowdSSOAuthenticationProcessingFilter
-
successfulAuthentication
protected void successfulAuthentication(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain, org.springframework.security.core.Authentication authResult) throws IOException, jakarta.servlet.ServletException Description copied from class:AbstractCrowdSSOAuthenticationProcessingFilterAttempts to write out the successful SSO token to a cookie, if an SSO token was generated and stored via the AuthenticationProvider.This effectively establishes SSO when using the CrowdAuthenticationProvider in conjunction with this filter.
- Overrides:
successfulAuthenticationin classAbstractCrowdSSOAuthenticationProcessingFilter- Parameters:
request- servlet request.response- servlet response.authResult- result of a successful authentication. If it is a CrowdSSOAuthenticationToken then the SSO token will be set to the "credentials" property.- Throws:
IOException- not thrown.jakarta.servlet.ServletException
-
clearRememberMeToken
protected void clearRememberMeToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
userWantsToBeRemembered
protected abstract boolean userWantsToBeRemembered(jakarta.servlet.http.HttpServletRequest request)
-