← All recipes
Moderne licensed

Use GetExternalAuthenticationSchemesAsync()

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore2.UseGetExternalAuthenticationSchemesAsyncArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Replace GetExternalAuthenticationSchemes() with GetExternalAuthenticationSchemesAsync(). The synchronous method was removed in ASP.NET Core 2.0.

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.UseGetExternalAuthenticationSchemesAsync

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet