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.jsontonet.minidev.json - Replace global method security with method security
Recipes
- Replace
HttpSecurity.authorizeRequests(...)withHttpSecurity.authorizeHttpRequests(...)andExpressionUrlAuthorizationConfigurer,AbstractInterceptUrlConfigurerwithAuthorizeHttpRequestsConfigurer, etc - Replace global method security with method security
- Spring Security 5.4 introduces the ability to configure
HttpSecurityby creating aSecurityFilterChainbean - Use new
Argon2PasswordEncoderfactory methods - Use new
Pbkdf2PasswordEncoderfactory methods - Use new
SCryptPasswordEncoderfactory methods - Use the new
requestMatchersmethods - Use the new
securityMatcher()method