Replace UseIdentity() with UseAuthentication()
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore2.UseUseAuthenticationArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetReplace app.UseIdentity() with app.UseAuthentication(). The UseIdentity method was removed in ASP.NET Core 2.0 in favor of UseAuthentication.
Single recipecsharpaspnetcoremigrationauthenticationProprietary
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.AspNetCore2.UseUseAuthenticationIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet