Spring Security 5.x
Categories
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Migrate to Spring Security 5.7
- Migrate to Spring Security 5.8
- Rename the package name from
com.nimbusds.jose.shaded.json
tonet.minidev.json
- Replace global method security with method security
Recipes
- Replace
HttpSecurity.authorizeRequests(...)
withHttpSecurity.authorizeHttpRequests(...)
andExpressionUrlAuthorizationConfigurer
,AbstractInterceptUrlConfigurer
withAuthorizeHttpRequestsConfigurer
, etc - Replace global method security with method security
- Spring Security 5.4 introduces the ability to configure
HttpSecurity
by creating aSecurityFilterChain
bean - Use new
Argon2PasswordEncoder
factory methods - Use new
Pbkdf2PasswordEncoder
factory methods - Use new
SCryptPasswordEncoder
factory methods - Use the new
requestMatchers
methods - Use the new
securityMatcher()
method