Oauth 从Microsoft.AspNet.Membership.OpenAuth检索其他信息

Oauth 从Microsoft.AspNet.Membership.OpenAuth检索其他信息,oauth,dotnetopenauth,Oauth,Dotnetopenauth,当使用此模板中的webforms时,是否有人有资源从中获取其他OAuth信息{名字、姓氏、配置文件图片}? 我已经搜索了几个小时试图找到例子,但没有任何结果。我尝试添加extradata参数,但出现了错误 //Dictionary<string, string> googleExtraData = new Dictionary<string, string> // { // {"email", Well

当使用此模板中的webforms时,是否有人有资源从中获取其他OAuth信息{名字、姓氏、配置文件图片}?

我已经搜索了几个小时试图找到例子,但没有任何结果。我尝试添加extradata参数,但出现了错误

        //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();
//字典googleExtraData=新字典
//    {
//{“email”,WellKnownAttributes.Contact.email},
//{“国家”,广为人知。联系人。家庭地址。国家},
//{“firstName”,WellKnownAttributes.Name.First},
//{“lastName”,WellKnownAttributes.Name.Last}
//    };
//添加(“Icon”,“GoogleLogin.png”);
OpenAuth.AuthenticationClients.AddGoogle();

我找到了这个信息。似乎您必须构建自己的自定义类才能在此处获得附加信息: