对于最新的稳定版本,请使用 Spring Security 6.4.3! |
Spring Security 5.8 中的新增功能
Spring Security 5.8 提供了许多新功能。 以下是该版本的亮点。
核心
AuthorizationManager API
-
GH-11493 -
AuthorizationManager
支持 SpEL -
其他 XML 支持
AuthorizationManager
-
gh-11393 - 其他 DSL 支持
AuthorizationManager
-
对 'AuthorizationManager 的其他 XML 支持
-
GH-11304 系列 -
AuthorizationManager
支持RoleHierarchy
-
GH-11076 -
AuthorizationManager
支持 WebSockets -
GH-11326 系列 -
AuthorizationManager
支持 AspectJ -
gh-11625 - 支持
AuthorizationManager
组成
杂项
-
GH-10973 -
SecurityContextHolderStrategy
可以作为@Bean
配置
-
GH-11771 -
HttpSecurityDsl
应该支持apply
方法
OAuth
-
gh-11590 - 弃用资源所有者密码授予
-
gh-11383 - 添加
baseScheme
,baseHost
,basePort
和basePath
到post_logout_redirect_uri
-
gh-11661 - 添加
OpaqueTokenAuthenticationConverter
-
GH-11232 系列 -
ClientRegistrations#rest
定义 30 秒连接和读取超时 -
gh-11638 - 发生未知 KID 错误时刷新远程 JWK
Web
-
gh-11073 - 添加
DelegatingServerHttpHeadersWriter
-
gh-4001 - 为 CSRF BREACH 保护添加 servlet 支持
-
gh-11464 - 记住我支持 SHA256 算法
-
gh-11908 - 在 ServerHttpSecurity 中配置 X-Xss-Protection 标头值
-
gh-11347 - 简化 Java 配置
RequestMatcher
用法 -
gh-9159 - 添加
securityMatcher
作为别名requestMatcher
在HttpSecurity
-
gh-11952 - 添加
csrfTokenRequestResolver
自CsrfDsl
-
GH-11916 -
HttpSecurityConfiguration
拾取ContentNegotiationStrategy
豆 -
gh-11971 - 对
AuthorizationFilter
为所有 Dispatcher 类型运行
测试
-
GH-6899 -
@WithMockUser
用作元注释