Widen the Supplier parameter of AuthorizationManager#check overrides
MSALSpring Security 7 replaces AuthorizationManager#check(Supplier<Authentication>, T) with authorize(Supplier<? extends Authentication>, T). Renaming an override is not enough for it to override authorize, so this recipe also changes its parameter to Supplier<? extends Authentication>.
org. openrewrite. java. spring. security7. WidenAuthorizationManagerSupplierParametermod run . --recipe= org. openrewrite. java. spring. security7. WidenAuthorizationManagerSupplierParameterInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.