whats-new.adoc 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [[new]]
  2. = What's New in Spring Security 7.0
  3. Spring Security 7.0 provides a number of new features.
  4. 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.
  5. == Removals
  6. Being a major release, there are a number of deprecated APIs that are removed in Spring Security 7.
  7. Each section that follows will indicate the more notable removals as well as the new features in that module
  8. == Modules
  9. * The https://github.com/spring-projects/spring-security-kerberos[Spring Security Kerberos Extension] is now part of Spring Security. See the xref:servlet/authentication/kerberos/index.adoc[Kerberos] section of the reference for details.
  10. == Core
  11. * Removed `AuthorizationManager#check` in favor of `AuthorizationManager#authorize`
  12. * Added xref:servlet/authorization/architecture.adoc#authz-authorization-manager-factory[`AuthorizationManagerFactory`] for creating `AuthorizationManager` instances in xref:servlet/authorization/authorize-http-requests.adoc#customizing-authorization-managers[request-based] and xref:servlet/authorization/method-security.adoc#customizing-authorization-managers[method-based] authorization components
  13. * Added `Authentication.Builder` for mutating and merging `Authentication` instances
  14. * Moved Access API (`AccessDecisionManager`, `AccessDecisionVoter`, etc.) to a new module, `spring-security-access`
  15. == Config
  16. * Support modular configuration in xref::servlet/configuration/java.adoc#modular-httpsecurity-configuration[Servlets] and xref::reactive/configuration/webflux.adoc#modular-serverhttpsecurity-configuration[WebFlux]
  17. * Removed `and()` from the `HttpSecurity` DSL in favor of using the lambda methods
  18. * Removed `authorizeRequests` in favor of `authorizeHttpRequests`
  19. * Simplified expression migration for `authorizeRequests`
  20. * Added support for SPA-based CSRF configuration:
  21. Java::
  22. +
  23. [source,java,role="primary"]
  24. ----
  25. http.csrf((csrf) -> csrf.spa());
  26. ----
  27. == Crypto
  28. * Added Password4j-based password encoders providing alternative implementations for popular hashing algorithms:
  29. ** `Argon2Password4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-argon2[Argon2]
  30. ** `BcryptPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-bcrypt[BCrypt]
  31. ** `ScryptPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-scrypt[SCrypt]
  32. ** `Pbkdf2Password4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-pbkdf2[PBKDF2]
  33. ** `BalloonHashingPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-balloon[Balloon Hashing]
  34. == Data
  35. * Added support to Authorized objects for Spring Data types
  36. == LDAP
  37. * Removed `ApacheDsContainer` and related Apache DS support in favor of UnboundID
  38. == OAuth 2.0
  39. * Removed support for password grant
  40. * Added OAuth2 Support for xref:features/integrations/rest/http-interface.adoc[HTTP Interface Integration]
  41. * Added support for custom `JwkSource` in `NimbusJwtDecoder`, allowing usage of Nimbus's `JwkSourceBuilder` API
  42. * Added builder for `NimbusJwtEncoder`, supports specifying an EC or RSA key pair or a secret key
  43. * Added support for `@ClientRegistrationId` at the xref:features/integrations/rest/http-interface.adoc#type[type level], eliminating the need for method level repetition
  44. == SAML 2.0
  45. * Removed API methods based on `AssertingPartyDetails` class in favor of `AssertingPartyMetadata` interface
  46. * Removed GET request support from `Saml2AuthenticationTokenConverter`
  47. * Added JDBC-based `AssertingPartyMetadataRepository`
  48. * Made so that SLO still returns `<saml2:LogoutResponse>` even when validation fails
  49. * Removed Open SAML 4 support; applications should migrate to Open SAML 5
  50. == Web
  51. * Removed `MvcRequestMatcher` and `AntPathRequestMatcher` in favor of `PathPatternRequestMatcher`
  52. * Added javadoc:org.springframework.security.web.authentication.preauth.x509.SubjectX500PrincipalExtractor[]
  53. * Added support for propagating exceptions in Authorized proxies through Spring MVC controllers
  54. * Added support to Authorized objects for Spring MVC types