1
有没有人有资源从使用此模板使用Webforms时获取附加OAuth信息{名字,姓氏,个人资料图片}? https://github.com/rustd/ASPNETTemplates从Microsoft.AspNet.Membership.OpenAuth检索其他信息
我已经搜索了几个小时试图找到示例,没有任何显示工作。我试图添加额外数据参数,但该错误
//Dictionary<string, string> googleExtraData = new Dictionary<string, string>
// {
// {"email", WellKnownAttributes.Contact.Email},
// {"country", WellKnownAttributes.Contact.HomeAddress.Country},
// {"firstName", WellKnownAttributes.Name.First},
// {"lastName", WellKnownAttributes.Name.Last}
// };
//googleExtraData.Add("Icon", "GoogleLogin.png");
OpenAuth.AuthenticationClients.AddGoogle();