whats-new.adoc 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. * Added Support for xref:servlet/authentication/adaptive.adoc[Multi-factor Authentication]
  12. * Removed `AuthorizationManager#check` in favor of `AuthorizationManager#authorize`
  13. * 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].
  14. * 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
  15. * Added `Authentication.Builder` for mutating and merging `Authentication` instances
  16. * Moved Access API (`AccessDecisionManager`, `AccessDecisionVoter`, etc.) to a new module, `spring-security-access`
  17. == Config
  18. * Support modular configuration in xref::servlet/configuration/java.adoc#modular-httpsecurity-configuration[Servlets] and xref::reactive/configuration/webflux.adoc#modular-serverhttpsecurity-configuration[WebFlux]
  19. * Removed `and()` from the `HttpSecurity` DSL in favor of using the lambda methods
  20. * Removed `authorizeRequests` in favor of `authorizeHttpRequests`
  21. * Simplified expression migration for `authorizeRequests`
  22. * Added support for SPA-based CSRF configuration:
  23. Java::
  24. +
  25. [source,java,role="primary"]
  26. ----
  27. http.csrf((csrf) -> csrf.spa());
  28. ----
  29. == Crypto
  30. * Added Password4j-based password encoders providing alternative implementations for popular hashing algorithms:
  31. ** `Argon2Password4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-argon2[Argon2]
  32. ** `BcryptPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-bcrypt[BCrypt]
  33. ** `ScryptPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-scrypt[SCrypt]
  34. ** `Pbkdf2Password4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-pbkdf2[PBKDF2]
  35. ** `BalloonHashingPassword4jPasswordEncoder` - xref:features/authentication/password-storage.adoc#password4j-balloon[Balloon Hashing]
  36. == Data
  37. * Added support to Authorized objects for Spring Data types
  38. == LDAP
  39. * Removed `ApacheDsContainer` and related Apache DS support in favor of UnboundID
  40. == OAuth 2.0
  41. * Removed support for password grant
  42. * Added OAuth2 Support for xref:features/integrations/rest/http-service-client.adoc[HTTP Service Clients]
  43. * Added support for custom `JwkSource` in `NimbusJwtDecoder`, allowing usage of Nimbus's `JwkSourceBuilder` API
  44. * Added builder for `NimbusJwtEncoder`, supports specifying an EC or RSA key pair or a secret key
  45. * Added support for `@ClientRegistrationId` at the xref:features/integrations/rest/http-service-client.adoc#type[type level], eliminating the need for method level repetition
  46. == SAML 2.0
  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. * Removed Open SAML 4 support; applications should migrate to Open SAML 5
  52. == Web
  53. * Removed `MvcRequestMatcher` and `AntPathRequestMatcher` in favor of `PathPatternRequestMatcher`
  54. * Added javadoc:org.springframework.security.web.authentication.preauth.x509.SubjectX500PrincipalExtractor[]
  55. * Added support for propagating exceptions in Authorized proxies through Spring MVC controllers
  56. * Added support to Authorized objects for Spring MVC types