I am using the DotNetOpenAuth lib to work with Google's (only) OpenId. And I get emails without any problems. But I can not get FullName, it is always zero.
request.AddExtension(new ClaimsRequest
{
Email = DemandLevel.Require,
FullName = DemandLevel.Require
});
ClaimsResponse claimsResponse = relyingPartyResponse.GetExtension<ClaimsResponse>();
if (claimsResponse != null)
{
var email = claimsResponse.Email;
var fullName = claimsResponse.FullName;
}
I searched for this problem and found that:
Glad you earned it. Google will not provide a full name or nickname for its users. They ONLY give an email address and (I think, but maybe only a whitelist) time zone. It is not a question of how to set up your RP so that it works. Google just doesn't do it yet. - Andrew Arnott September 8 at 2:22 pm stackoverflow.com/questions/1387438/retrieve-openid-user-information-claims-across-providers
2009 , , - ... , http://code.google.com/apis/accounts/docs/OpenID.html:
openid.ax.required - () . : "", " ", " ", "", "". , -.
, : FullName (FirstName, LastName) Google OpenId?
user294711