Use HttpContext authentication extensions

Proprietary

Replace 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.UseHttpContextAuthExtensions
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore2.UseHttpContextAuthExtensions

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.