Migrate Spring Security OAuth resource servers to Spring Security
ProprietaryMigrates the resource server half of the end-of-life org.springframework.security.oauth:spring-security-oauth2 project to the spring-security-oauth2-resource-server module. Note that the legacy project shares the org.springframework.security.oauth2 package root with its replacement, so every type here is matched by exact name rather than by package. Configuration classes that cannot be migrated faithfully are left exactly as they are and marked for a manual migration rather than partially rewritten.
io. moderne. java. spring. security. oauth. MigrateSpringSecurityOAuthResourceServermod run . --recipe= io. moderne. java. spring. security. oauth. MigrateSpringSecurityOAuthResourceServerInstall 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.
- Add Gradle or Maven dependency
org.springframework.security:spring-security-oauth2-resource-server:6.5.x - Add Gradle or Maven dependency
org.springframework.security:spring-security-oauth2-jose:6.5.x - Migrate
ResourceServerConfigurerAdapterto aSecurityFilterChainbean - Change the key of a Spring application property
- Change the key of a Spring application property
- Comment out Spring properties
- Comment out Spring properties
- Comment out Spring properties
- Comment out Spring properties