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, 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
protected 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 AbstractCrowdSSOAuthenticationProcessingFilter
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)
appendSuppliers
in class AbstractCrowdSSOAuthenticationProcessingFilter
protected 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
AbstractCrowdSSOAuthenticationProcessingFilter
This effectively establishes SSO when using the CrowdAuthenticationProvider in conjunction with this filter.
successfulAuthentication
in class AbstractCrowdSSOAuthenticationProcessingFilter
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.IOException
- not thrown.javax.servlet.ServletException
protected void clearRememberMeToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected abstract boolean userWantsToBeRemembered(javax.servlet.http.HttpServletRequest request)
Copyright © 2020 Atlassian. All rights reserved.