This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Security 6.5.3! |
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.
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 module
Modules
-
The Spring Security Kerberos Extension is now part of Spring Security. See the Kerberos section of the reference for details.
Core
-
Removed
AuthorizationManager#check
in favor ofAuthorizationManager#authorize
-
Added
AuthorizationManagerFactory
for creatingAuthorizationManager
instances in request-based and method-based authorization components -
Added
Authentication.Builder
for mutating and mergingAuthentication
instances -
Moved Access API (
AccessDecisionManager
,AccessDecisionVoter
, etc.) to a new module,spring-security-access
Config
-
Removed
and()
from theHttpSecurity
DSL in favor of using the lambda methods -
Removed
authorizeRequests
in favor ofauthorizeHttpRequests
-
Simplified expression migration for
authorizeRequests
-
Added support for SPA-based CSRF configuration:
- Java
-
http.csrf((csrf) -> csrf.spa());
OAuth 2.0
-
Removed support for password grant
-
Added OAuth2 Support for HTTP Interface Integration
-
Added support for custom
JwkSource
inNimbusJwtDecoder
, allowing usage of Nimbus’sJwkSourceBuilder
API -
Added builder for
NimbusJwtEncoder
, supports specifying an EC or RSA key pair or a secret key -
Added support for
@ClientRegistrationId
at the type level, eliminating the need for method level repetition
SAML 2.0
-
Removed API methods based on
AssertingPartyDetails
class in favor ofAssertingPartyMetadata
interface -
Removed GET request support from
Saml2AuthenticationTokenConverter
-
Added JDBC-based
AssertingPartyMetadataRepository
-
Made so that SLO still returns
<saml2:LogoutResponse>
even when validation fails -
Removed Open SAML 4 support; applications should migrate to Open SAML 5