C# ASP.NET Core 2.1中缺少AddSignIn方法

C# ASP.NET Core 2.1中缺少AddSignIn方法,c#,asp.net-core,openid-connect,C#,Asp.net Core,Openid Connect,我创建了一个ASP.NET核心web应用程序,并尝试添加以下代码以实现身份验证,但找不到AddSignIn方法 services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme) .AddSignIn("AzureAdB2C", Configuration, // This method is missing options => Configuration.Bind("

我创建了一个ASP.NET核心web应用程序,并尝试添加以下代码以实现身份验证,但找不到AddSignIn方法

services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
    .AddSignIn("AzureAdB2C", Configuration, // This method is missing
    options => Configuration.Bind("AzureAdB2C", options));
我正在使用Microsoft.AspNetCore.Authentication.OpenIdConnect包,因此我不确定这里缺少什么。

位于名称空间
Microsoft.Identity.Web
,它位于同名包中


你安装了软件包吗

好的,这个方法似乎只适用于.NETCore3.1。我认为对于.NETCore2.1,我应该使用
AddAzureADB2C
,但即使这样,我的代码中也没有。我应该下载一个单独的软件包吗?