spring security中Filter的次序

薄烨
2023-12-01

其次序定义在FilterOrderRegistration类中,内部使用Map<String, Integer>来存放对应类名的次序

次序
DisableEncodeUrlFilter100
ForceEagerSessionCreationFilter200
ChannelProcessingFilter300
WebAsyncManagerIntegrationFilter500
SecurityContextHolderFilter600
SecurityContextPersistenceFilter700
HeaderWriterFilter800
CorsFilter900
CsrfFilter1000
LogoutFilter1100
OAuth2AuthorizationRequestRedirectFilter1200
Saml2WebSsoAuthenticationRequestFilter1300
X509AuthenticationFilter1400
AbstractPreAuthenticatedProcessingFilter1500
CasAuthenticationFilter1600
OAuth2LoginAuthenticationFilter1700
Saml2WebSsoAuthenticationFilter1800
UsernamePasswordAuthenticationFilter1900
DefaultLoginPageGeneratingFilter2100
DefaultLogoutPageGeneratingFilter2200
ConcurrentSessionFilter2300
DigestAuthenticationFilter2400
BearerTokenAuthenticationFilter2500
BasicAuthenticationFilter2600
RequestCacheAwareFilter2700
SecurityContextHolderAwareRequestFilter2800
JaasApiIntegrationFilter2900
RememberMeAuthenticationFilter3000
AnonymousAuthenticationFilter3100
OAuth2AuthorizationCodeGrantFilter3200
SessionManagementFilter3300
ExceptionTranslationFilter3400
FilterSecurityInterceptor3500
AuthorizationFilter3600
SwitchUserFilter3700

 类似资料: