public abstract class AbstractLocalCrowdAuthenticationProcessingFilter extends AbstractCrowdSSOAuthenticationProcessingFilter
| Modifier and Type | Field and Description |
|---|---|
protected PropertyManager |
propertyManager |
protected CrowdRememberMeService |
rememberMeService |
protected TokenAuthenticationManager |
tokenAuthenticationManager |
clientProperties, SILENT_AUTHENTICATION_EXCEPTION_SWALLOWER, tokenHelper| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLocalCrowdAuthenticationProcessingFilter(ClientProperties clientProperties,
CrowdHttpTokenHelper tokenHelper,
PropertyManager propertyManager,
TokenAuthenticationManager tokenAuthenticationManager,
CrowdRememberMeService rememberMeService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendSuppliers(javax.servlet.http.HttpServletRequest request,
javax.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 void |
clearRememberMeToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected CookieConfiguration |
getCookieConfiguration() |
protected void |
successfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.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 boolean |
userWantsToBeRemembered(javax.servlet.http.HttpServletRequest request) |
canUseSavedRequestToAuthenticate, doSetDetails, getAuthenticatedToken, getAuthenticationDetails, getSavedPath, onUnsuccessfulAuthentication, requiresAuthentication, setDetails, setLoginUrlAuthenticationEntryPoint, setRequestToApplicationMapper, storeTokenIfCrowd, unsuccessfulAuthenticationattemptAuthentication, getPasswordParameter, getUsernameParameter, obtainPassword, obtainUsername, setPasswordParameter, setPostOnly, setUsernameParameterafterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategyprotected final PropertyManager propertyManager
protected final TokenAuthenticationManager tokenAuthenticationManager
protected final CrowdRememberMeService rememberMeService
protected AbstractLocalCrowdAuthenticationProcessingFilter(ClientProperties clientProperties, CrowdHttpTokenHelper tokenHelper, PropertyManager propertyManager, TokenAuthenticationManager tokenAuthenticationManager, CrowdRememberMeService rememberMeService)
protected CookieConfiguration getCookieConfiguration()
getCookieConfiguration in class AbstractCrowdSSOAuthenticationProcessingFilterprotected void appendSuppliers(javax.servlet.http.HttpServletRequest request,
javax.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)
appendSuppliers in class AbstractCrowdSSOAuthenticationProcessingFilterprotected void successfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain,
org.springframework.security.core.Authentication authResult)
throws IOException,
javax.servlet.ServletException
AbstractCrowdSSOAuthenticationProcessingFilterThis effectively establishes SSO when using the CrowdAuthenticationProvider in conjunction with this filter.
successfulAuthentication in class AbstractCrowdSSOAuthenticationProcessingFilterrequest - 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.IOException - not thrown.javax.servlet.ServletExceptionprotected void clearRememberMeToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected abstract boolean userWantsToBeRemembered(javax.servlet.http.HttpServletRequest request)
Copyright © 2023 Atlassian. All rights reserved.