What’s New in Spring Security 7.0

Spring Security 7.0 provides a number of new features. Below are the highlights of the release, or you can view the release notes for a detailed listing of each feature and bug fix.spring-doc.cn

Removals

Being a major release, there are a number of deprecated APIs that are removed in Spring Security 7. Each section that follows will indicate the more notable removals as well as the new features in that modulespring-doc.cn

Modules

Core

Config

Crypto

Data

  • Added support to Authorized objects for Spring Data typesspring-doc.cn

LDAP

  • Removed ApacheDsContainer and related Apache DS support in favor of UnboundIDspring-doc.cn

OAuth 2.0

SAML 2.0

  • Removed API methods based on AssertingPartyDetails class in favor of AssertingPartyMetadata interfacespring-doc.cn

  • Removed GET request support from Saml2AuthenticationTokenConverterspring-doc.cn

  • Added JDBC-based AssertingPartyMetadataRepositoryspring-doc.cn

  • Made so that SLO still returns <saml2:LogoutResponse> even when validation failsspring-doc.cn

  • Removed Open SAML 4 support; applications should migrate to Open SAML 5spring-doc.cn

Web

  • Removed MvcRequestMatcher and AntPathRequestMatcher in favor of PathPatternRequestMatcherspring-doc.cn

  • Added SubjectX500PrincipalExtractorspring-doc.cn

  • Added support for propagating exceptions in Authorized proxies through Spring MVC controllersspring-doc.cn

  • Added support to Authorized objects for Spring MVC typesspring-doc.cn

  • Added support to Default Login Page to show factors based on factor.type and factor.reason parametersspring-doc.cn

  • Changed LoginUrlAuthenticationEntryPoint to favor relative redirects by defaultspring-doc.cn