# 最新更新在 Spring 安全性5.6中

Spring 安全性5.6提供了许多新功能。以下是此次发布会的亮点。

* 所有新的[Antora](https://antora.org/)基于[文件](https://docs.spring.io/spring-security/)。

## Servlet

* 核心

  * 介绍了[`SecurityContextChangedListener`]（https://github.com/ Spring-projects/ Spring-security/issues/10226）

  * 改进的[方法安全日志](https://github.com/spring-projects/spring-security/pull/10279)

* 配置

  * 为方法安全性引入了[`AuthorizationManager`]（https://github.com/ Spring-projects/ Spring-security/pull/9630）

* SAML2.0服务提供商

  * 新增[SAML2.0单注销支持](servlet/saml2/logout.html)

  * 新增[SAML2身份验证请求存储库](servlet/saml2/login/authentication-requests.html#servlet-saml2login-store-authn-request)

  * 添加了[`RelyingPartyRegistrationResolver`]（ Servlet/saml2/login/overview.html# Servlet-saml2login-rpr-relyingpartyregistrationresolver）

  * 改进了`Saml2LoginConfigurer`对[`Saml2AuthenticationTokenConverter`]的处理（https://github.com/ Spring-projects/ Spring-security/issues/10268）

* OAuth2.0登录

  * 添加了[`Converter`for`Authentication`结果]（https://github.com/ Spring-projects/ Spring-security/pull/10041）

* OAuth2.0客户端

  * 改进的[客户端凭据编码](https://github.com/spring-projects/spring-security/pull/9791)

  * 改进的[访问令牌响应解析](https://github.com/spring-projects/spring-security/pull/9779)

  * 为授权请求添加了[自定义授权类型支持](https://github.com/spring-projects/spring-security/pull/10155)

  * 推出[JwtEncoder](https://github.com/spring-projects/spring-security/pull/9208)

* 测试

  * 添加对[将TestSecurityContexholder传播到SecurityContexholder](https://github.com/spring-projects/spring-security/pull/9737)的支持

## WebFlux

* OAuth2.0登录

  * 改进的[Active OAuth2.0登录文档](reactive/oauth2/login/index.html)

* OAuth2.0客户端

  * 改进的[客户端凭据编码](https://github.com/spring-projects/spring-security/pull/9791)

  * 为访问令牌请求添加了[自定义头支持](https://github.com/spring-projects/spring-security/pull/10131)

  * 为访问令牌请求添加了[自定义响应解析](https://github.com/spring-projects/spring-security/pull/10269)

  * 为访问令牌请求添加了[JWT-持股人授予类型支持](https://github.com/spring-projects/spring-security/pull/10327)

  * 为访问令牌请求添加了[JWT客户端身份验证支持](https://github.com/spring-projects/spring-security/pull/10336)

  * 改进的[Active OAuth2.0客户端文档](reactive/oauth2/client/index.html)

[Community](community.html)[Getting Spring Security](getting-spring-security.html)