Use HttpContext authentication extensions
ProprietaryReplace HttpContext.Authentication.Method(...) calls with HttpContext.Method(...) extension methods. The IAuthenticationManager interface was removed in ASP.NET Core 2.0.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. AspNetCore2. UseHttpContextAuthExtensionsmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. AspNetCore2. UseHttpContextAuthExtensionsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.