Migrate OAuth2AccessTokenResponseClient from RestOperations to RestClient based implementations
ProprietaryReplaces the deprecated RestOperations-based OAuth2AccessTokenResponseClient implementations, removed in Spring Security 7, with the RestClient-based ones introduced in Spring Security 6.4. setRestOperations calls with a RestTemplate become setRestClient calls. Other setRestOperations arguments and setRequestEntityConverter calls are marked with a warning. DefaultPasswordTokenResponseClient has no replacement and is left as is.
io. moderne. java. spring. security7. MigrateOAuth2AccessTokenResponseClientmod run . --recipe= io. moderne. java. spring. security7. MigrateOAuth2AccessTokenResponseClientInstall 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.
- Change type
DefaultAuthorizationCodeTokenResponseClienttoRestClientAuthorizationCodeTokenResponseClient - Change type
DefaultRefreshTokenTokenResponseClienttoRestClientRefreshTokenTokenResponseClient - Change type
DefaultClientCredentialsTokenResponseClienttoRestClientClientCredentialsTokenResponseClient - Change type
DefaultJwtBearerTokenResponseClienttoRestClientJwtBearerTokenResponseClient - Change type
DefaultTokenExchangeTokenResponseClienttoRestClientTokenExchangeTokenResponseClient - Migrate OAuth2 token response client from
RestOperationstoRestClient