← All recipes
Moderne licensed

Find implicit authentication default scheme (ASP.NET Core 9)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindImplicitAuthenticationDefaultArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds calls to AddAuthentication() with no arguments. In .NET 9, a single registered authentication scheme is no longer automatically used as the default.

Single recipeaspnetsearchdotnetnet9Proprietary

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.Net9.FindImplicitAuthenticationDefault

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

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