|
4 | 4 | Spring Security 7.0 provides a number of new features.
|
5 | 5 | Below are the highlights of the release, or you can view https://github.com/spring-projects/spring-security/releases[the release notes] for a detailed listing of each feature and bug fix.
|
6 | 6 |
|
| 7 | +== Removals |
| 8 | + |
| 9 | +Being a major release, there are a number of deprecated APIs that are removed in Spring Security 7. |
| 10 | +Each section that follows will indicate the more notable removals as well as the new features in that module |
| 11 | + |
| 12 | +== Core |
| 13 | + |
| 14 | +* Removed `AuthorizationManager#check` in favor of `AuthorizationManager#authorize` |
| 15 | + |
| 16 | +== Config |
| 17 | + |
| 18 | +* Removed `and()` from the `HttpSecurity` DSL in favor of using the lambda methods |
| 19 | +* Removed `authorizeRequests` in favor of `authorizeHttpRequests` |
| 20 | +* Simplified expression migration for `authorizeRequests` |
| 21 | +* Added support for SPA-based CSRF configuration: |
| 22 | + |
| 23 | +Java:: |
| 24 | ++ |
| 25 | +[source,java,role="primary"] |
| 26 | +---- |
| 27 | +http.csrf((csrf) -> csrf.spa()); |
| 28 | +---- |
| 29 | + |
| 30 | +== Data |
| 31 | + |
| 32 | +* Added support to Authorized objects for Spring Data types |
| 33 | + |
| 34 | +== LDAP |
| 35 | + |
| 36 | +* Removed `ApacheDsContainer` and related Apache DS support in favor of UnboundID |
| 37 | + |
| 38 | +== OAuth 2.0 |
| 39 | + |
| 40 | +* Removed support for password grant |
| 41 | +* Added OAuth2 Support for xref:features/integrations/rest/http-interface.adoc[HTTP Interface Integration] |
| 42 | +* Added support for custom `JwkSource` in `NimbusJwtDecoder`, allowing usage of Nimbus's `JwkSourceBuilder` API |
| 43 | +* Added builder for `NimbusJwtEncoder`, supports specifying an EC or RSA key pair or a secret key |
| 44 | + |
| 45 | +== SAML 2.0 |
| 46 | + |
| 47 | +* Removed API methods based on `AssertingPartyDetails` class in favor of `AssertingPartyMetadata` interface |
| 48 | +* Removed GET request support from `Saml2AuthenticationTokenConverter` |
| 49 | +* Added JDBC-based `AssertingPartyMetadataRepository` |
| 50 | +* Made so that SLO still returns `<saml2:LogoutResponse>` even when validation fails |
| 51 | + |
7 | 52 | == Web
|
8 | 53 |
|
| 54 | +* Removed `MvcRequestMatcher` and `AntPathRequestMatcher` in favor of `PathPatternRequestMatcher` |
9 | 55 | * Added javadoc:org.springframework.security.web.authentication.preauth.x509.SubjectX500PrincipalExtractor[]
|
10 |
| -* Added OAuth2 Support for xref:features/integrations/rest/http-interface.adoc[HTTP Interface Integration] |
| 56 | +* Added support for propagating exceptions in Authorized proxies through Spring MVC controllers |
| 57 | +* Added support to Authorized objects for Spring MVC types |
0 commit comments