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

Proprietary

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

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindImplicitAuthenticationDefault
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindImplicitAuthenticationDefault

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