Spring Security 6.0 中的新增功能

Spring Security 6.0 提供了许多新功能。 以下是该版本的亮点。

基线更改

  • Spring Security 6 需要 JDK 17

重大变更

  • gh-8980- 删除不安全/已弃用。 而是使用数据存储来加密值。Encryptors.querableText(CharSequence,CharSequence)

  • gh-11520- 记住我默认使用 SHA256

  • GH-8819- 将过滤器移动到 Web 包 重新组织导入

  • gh-7349- 将过滤器和令牌移动到适当的包 重新组织导入

  • gh-11026- 使用代替RequestAttributeSecurityContextRepositoryNullSecurityContextRepository

  • gh-11827- 更改默认权限oauth2Login()

  • GH-10347- 删除签入UsernamePasswordAuthenticationTokenBasicAuthenticationFilter

  • GH-11923- 删除。 相反,创建一个SecurityFilterChain beanWebSecurityConfigurerAdapter

  • gh-11899- 如果存在 Spring MVC,则默认使用。 您可以使用<http> 中的请求匹配器属性配置差异。MvcRequestMatcherRequestMatcher

  • 将使用授权管理器=“true”更改为默认值 如果应用程序分别使用或切换 toor。 如果应用程序依赖于隐式,则这不再是隐式的,需要指定。 或使用use-expressions="true"access-decision-manager-refuse-expressions="false"authorization-manager-ref<intercept-url pattern="/**" access="permitAll"/>use-authorization-manager="false"

  • gh-11939- 从 Java 配置中删除不推荐使用的帮助程序方法。 相反,使用者。antMatchersmvcMatchersregexMatchersrequestMatchersHttpSecurity#securityMatchers

  • gh-11985- 删除已弃用的构造函数,和。Argon2PasswordEncoderSCryptPasswordEncoderPbkdf2PasswordEncoder

  • gh-11960- 默认为Servlet反应式的 Xor CSRF 保护

  • gh-12019- 从中删除已弃用的方法setTokenFromMultipartDataEnabledCsrfWebFilter

  • gh-12020- 从 Java 配置中删除不推荐使用的方法tokenFromMultipartDataEnabled

  • gh-9429-重新抛出“身份验证服务异常”Authentication(Web)Filter

  • gh-11027,gh-11466- 对每种调度程序类型的授权

  • gh-11110- 默认情况下需要显式会话保存

  • GH-11057- 从中删除MessageSourceAwareExceptionTranslationWebFilter

  • gh-12202- 删除 OAuth 弃用

  • gh-10556- 删除 EOL OpenSaml 3 支持。 请改用 OpenSaml 4 支持。

  • gh-11077- 删除 SAML 弃用

    • 从和 中删除构造函数ConverterSaml2MetadataFilterSaml2AuthenticationTokenConverter

    • 删除和实现Saml2AuthenticationRequestContextResolverSaml2AuthenticationRequestFactory

    • 删除Saml2AuthenticationToken(String, String, String, String, List)

    • 删除和相关方法RelyingPartyRegistration.ProviderDetails

    • 删除OpenSamlAuthenticationProvider

  • gh-12180- 注册所有调度程序类型FilterChainProxy

核心

  • gh-11446- 添加本机映像支持@PreAuthorize

  • gh-11737- 添加本机映像支持@PostAuthorize

  • 仪器,和AuthenticationManagerAuthorizationManagerFilterChainProxy

  • 仪器,和ReactiveAuthenticationManagerReactiveAuthorizationManagerWebFilterChainProxy

目录

  • gh-9276- LdapAuthority填充器经过后处理

  • GH-11432-支持迈克CookieServerCsrfTokenRepository

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值