2
0

whats-new.adoc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. == Core
  9. * Removed `AuthorizationManager#check` in favor of `AuthorizationManager#authorize`
  10. == Config
  11. * Removed `and()` from the `HttpSecurity` DSL in favor of using the lambda methods
  12. * Removed `authorizeRequests` in favor of `authorizeHttpRequests`
  13. * Simplified expression migration for `authorizeRequests`
  14. * Added support for SPA-based CSRF configuration:
  15. Java::
  16. +
  17. [source,java,role="primary"]
  18. ----
  19. http.csrf((csrf) -> csrf.spa());
  20. ----
  21. == Data
  22. * Added support to Authorized objects for Spring Data types
  23. == LDAP
  24. * Removed `ApacheDsContainer` and related Apache DS support in favor of UnboundID
  25. == OAuth 2.0
  26. * Removed support for password grant
  27. * Added OAuth2 Support for xref:features/integrations/rest/http-interface.adoc[HTTP Interface Integration]
  28. * Added support for custom `JwkSource` in `NimbusJwtDecoder`, allowing usage of Nimbus's `JwkSourceBuilder` API
  29. * Added builder for `NimbusJwtEncoder`, supports specifying an EC or RSA key pair or a secret key
  30. == SAML 2.0
  31. * Removed API methods based on `AssertingPartyDetails` class in favor of `AssertingPartyMetadata` interface
  32. * Removed GET request support from `Saml2AuthenticationTokenConverter`
  33. * Added JDBC-based `AssertingPartyMetadataRepository`
  34. * Made so that SLO still returns `<saml2:LogoutResponse>` even when validation fails
  35. == Web
  36. * Removed `MvcRequestMatcher` and `AntPathRequestMatcher` in favor of `PathPatternRequestMatcher`
  37. * Added javadoc:org.springframework.security.web.authentication.preauth.x509.SubjectX500PrincipalExtractor[]
  38. * Added support for propagating exceptions in Authorized proxies through Spring MVC controllers
  39. * Added support to Authorized objects for Spring MVC types