1

我正在尝试在 ASP.Net Core Identity 中使用 Yahoo 外部 OAUTH 提供程序(nuget:AspNet.Security.OAuth.Yahoo),但它没有返回我需要的电子邮件声明。这是雅虎App的配置:

应用权限配置

这就是我配置 ASP.Net 应用程序的方式:

 .AddYahoo(options =>
             {
                 options.ClientId = Configuration["Authentication:Yahoo:ConsumerKey"];
                 options.ClientSecret = Configuration["Authentication:Yahoo:ConsumerSecret"];
                 options.Scope.Add("email");
                 options.SaveTokens = true;
             })

我得到的只是一种“ http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier ”类型的声明

请帮忙。

谢谢。

4

0 回答 0