.net AuthenticationBuilder不包含Google的定义

jjjwad0x  于 2023-01-06  发布在  .NET
关注(0)|答案(1)|浏览(76)
var builder = WebApplication.CreateBuilder(args);
var services = builder.Services;
var configuration = builder.Configuration;

services.AddAuthentication().AddFacebook(facebookOptions =>
{facebookOptions.AppId = "xxxxx";
 facebookOptions.AppSecret = "xxxxx";
});

services.AddAuthentication().AddGoogle(googleOptions =>
{   googleOptions.ClientId = configuration["Authentication:Google:ClientId"];
    googleOptions.ClientSecret = configuration["Authentication:Google:ClientSecret"];
});`

Facebook运行良好。谷歌有什么问题?我在NuGet上找不到任何软件包。

相关问题