Migrate to Spring Security 5.8
MSALMigrate applications to the latest Spring Security 5.8 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions.
org. openrewrite. java. spring. security5. UpgradeSpringSecurity_5_8mod run . --recipe= org. openrewrite. java. spring. security5. UpgradeSpringSecurity_5_8Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate to Spring Security 5.7
- Upgrade Gradle or Maven dependency versions
org.springframework.security:*:5.8.x - Upgrade Gradle or Maven dependency versions
org.springframework.security:spring-security-oauth2-authorization-server:0.4.x - Convert
HttpSecuritychained calls into Lambda DSL - Convert
ServerHttpSecuritychained calls into Lambda DSL - Convert
HeadersConfigurerchained calls into Lambda DSL - Replace
HttpSecurity.authorizeRequests(...)withHttpSecurity.authorizeHttpRequests(...)andExpressionUrlAuthorizationConfigurer,AbstractInterceptUrlConfigurerwithAuthorizeHttpRequestsConfigurer, etc - Convert
requestMatcherschain tosecurityMatcher - Use the new
requestMatchersmethods - Use the new
securityMatcher()method - Use new
Pbkdf2PasswordEncoderfactory methods - Use new
SCryptPasswordEncoderfactory methods - Use new
Argon2PasswordEncoderfactory methods - Rename the package name from
com.nimbusds.jose.shaded.jsontonet.minidev.json - Replace global method security with method security
- Replace global method security with method security