Find HttpContext.Authentication usage (removed in ASP.NET Core 3.0)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.FindHttpContextAuthenticationArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds usages of HttpContext.Authentication which was removed in ASP.NET Core 3.0. Use dependency injection to get IAuthenticationService instead.
Single recipenet3.0searchdotnetaspnetcoreProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.FindHttpContextAuthenticationIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet