Migrate AuthState to AuthExchange
MSALMigrate Apache HttpClient 4.x AuthState and related types to the HttpClient 5.x AuthExchange API, including the AuthProtocolState enum, AuthOption queue elements, and credential-handling call sites.
org. openrewrite. apache. httpclient5. MigrateAuthStatemod run . --recipe= org. openrewrite. apache. httpclient5. MigrateAuthStateInstall 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
AuthStatetoAuthExchange - Change type
AuthProtocolStatetoAuthExchange$State - Change type
AuthOptiontoAuthScheme - Change method name
org.apache.hc.client5.http.auth.AuthExchange setAuthScheme(org.apache.hc.client5.http.auth.AuthScheme)toselect - Change method name
org.apache.hc.client5.http.auth.AuthExchange setAuthOptions(java.util.Queue)tosetOptions - Migrate
AuthSchemecredential handling - Add comment to method invocations
- Add comment to method invocations
- Add comment to method invocations