|
For the latest stable version, please use Spring Security 6.5.3! |
What’s New in Spring Security 6.0
Spring Security 6.0 provides a number of new features. Below are the highlights of the release.
Breaking Changes
-
gh-8980 - Remove unsafe/deprecated
Encryptors.querableText(CharSequence,CharSequence). Instead use data storage to encrypt values. -
gh-11520 - Remember Me uses SHA256 by default
-
gh-8819 - Move filters to web package Reorganize imports
-
gh-7349 - Move filter and token to appropriate packages Reorganize imports
-
gh-11026 - Use
RequestAttributeSecurityContextRepositoryinstead ofNullSecurityContextRepository -
gh-11827 - Change default authority for
oauth2Login() -
gh-10347 - Remove
UsernamePasswordAuthenticationTokencheck inBasicAuthenticationFilter -
gh-11923 - Remove
WebSecurityConfigurerAdapter. Instead, create a SecurityFilterChain bean. -
gh-11899 - Use
MvcRequestMatcherby default if Spring MVC is present. You can configure a differentRequestMatcherby using the request-matcher attribute from <http>. -
Change use-authorization-manager="true" to default If the application uses
use-expressions="true"oraccess-decision-manager-refswitch touse-expressions="false"orauthorization-manager-ref, respectively. If application relies on the implicit<intercept-url pattern="/**" access="permitAll"/>, this is no longer implicit and needs to be specified. Or useuse-authorization-manager="false" -
gh-11939 - Remove deprecated
antMatchers,mvcMatchers,regexMatchershelper methods from Java Configuration. Instead, userequestMatchersorHttpSecurity#securityMatchers. -
gh-11985 - Remove deprecated constructors in
Argon2PasswordEncoder,SCryptPasswordEncoderandPbkdf2PasswordEncoder. -
gh-11960 - Default to Xor CSRF protection for servlet and reactive
-
gh-12019 - Remove deprecated method
setTokenFromMultipartDataEnabledfromCsrfWebFilter -
gh-12020 - Remove deprecated method
tokenFromMultipartDataEnabledfrom Java Configuration -
gh-9429 -
Authentication(Web)Filterrethrows `AuthenticationServiceException`s -
gh-11110 - Require explicit session saves by default
-
gh-11057 - Remove
MessageSourceAwarefromExceptionTranslationWebFilter -
gh-12202 - Remove OAuth deprecations
-
gh-10556 - Remove EOL OpenSaml 3 Support. Use the OpenSaml 4 Support instead.
-
gh-11077 - Remove SAML deprecations
-
Remove
Converterconstructors fromSaml2MetadataFilterandSaml2AuthenticationTokenConverter -
Remove
Saml2AuthenticationRequestContextResolverandSaml2AuthenticationRequestFactoryand implementations -
Remove
Saml2AuthenticationToken(String, String, String, String, List) -
Remove
RelyingPartyRegistration.ProviderDetailsand related methods -
Remove
OpenSamlAuthenticationProvider
-
-
gh-12180 - Register
FilterChainProxyfor all dispatcher types
Core
-
gh-11446 - Add native image support for
@PreAuthorize -
gh-11737 - Add native image support for
@PostAuthorize -
Instrumentation of
AuthenticationManager,AuthorizationManager, andFilterChainProxy -
Instrumentation of
ReactiveAuthenticationManager,ReactiveAuthorizationManager, andWebFilterChainProxy
LDAP
-
gh-9276 - LdapAuthoritiesPopulator is post-processed
Web
-
gh-11432 -
CookieServerCsrfTokenRepositorysupports maxage