whats-new.adoc 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 javadoc:org.springframework.security.authorization.AllAuthoritiesAuthorizationManager[] and javadoc:org.springframework.security.authorization.AllAuthoritiesReactiveAuthorizationManager[] along with corresponding methods for xref:servlet/authorization/authorize-http-requests.adoc#authorize-requests[Authorizing `HttpServletRequests`] and xref:servlet/authorization/method-security.adoc#using-authorization-expression-fields-and-methods[method security expressions].
  13. * 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
  14. * Added `Authentication.Builder` for mutating and merging `Authentication` instances
  15. * Moved Access API (`AccessDecisionManager`, `AccessDecisionVoter`, etc.) to a new module, `spring-security-access`
  16. == Config
  17. * Support modular configuration in xref::servlet/configuration/java.adoc#modular-httpsecurity-configuration[Servlets] and xref::reactive/configuration/webflux.adoc#modular-serverhttpsecurity-configuration[WebFlux]
  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. Java::
  23. +
  24. [source,java,role="primary"]
  25. ----
  26. http.csrf((csrf) -> csrf.spa());
  27. ----
  28. == Crypto
  29. * Added Password4j-based password encoders providing alternative implementations for popular hashing algorithms:
  30. ** `Argon2Password4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-argon2[Argon2]
  31. ** `BcryptPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-bcrypt[BCrypt]
  32. ** `ScryptPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-scrypt[SCrypt]
  33. ** `Pbkdf2Password4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-pbkdf2[PBKDF2]
  34. ** `BalloonHashingPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-balloon[Balloon Hashing]
  35. == Data
  36. * Added support to Authorized objects for Spring Data types
  37. == LDAP
  38. * Removed `ApacheDsContainer` and related Apache DS support in favor of UnboundID
  39. == OAuth 2.0
  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. * Added support for `@ClientRegistrationId` at the xref:features/integrations/rest/http-interface.adoc#type[type level], eliminating the need for method level repetition
  45. == SAML 2.0
  46. * Removed API methods based on `AssertingPartyDetails` class in favor of `AssertingPartyMetadata` interface
  47. * Removed GET request support from `Saml2AuthenticationTokenConverter`
  48. * Added JDBC-based `AssertingPartyMetadataRepository`
  49. * Made so that SLO still returns `<saml2:LogoutResponse>` even when validation fails
  50. * Removed Open SAML 4 support; applications should migrate to Open SAML 5
  51. == Web
  52. * Removed `MvcRequestMatcher` and `AntPathRequestMatcher` in favor of `PathPatternRequestMatcher`
  53. * Added javadoc:org.springframework.security.web.authentication.preauth.x509.SubjectX500PrincipalExtractor[]
  54. * Added support for propagating exceptions in Authorized proxies through Spring MVC controllers
  55. * Added support to Authorized objects for Spring MVC types