1

I would like to use OpenID (PHP and LightOpenID) to get the following user information:

    $openid->required = array(
      'namePerson',
      'namePerson/first',
      'namePerson/last',
      'contact/email',
      'person/guid',
      'birthDate/birthYear',
      'birthDate/birthMonth',
      'birthDate/birthday',
      'gender',
    );  

However, I found that both Yahoo and Google return only the following data:

 Array ( [namePerson] => abc [contact/email] => abc@example.com ) 

Is there something wrong with my code? Can I force Google and Yahoo to return all the data I want?

TRiG
  • 10,148
  • 7
  • 57
  • 107
manhon
  • 683
  • 7
  • 27

1 Answers1

2

Google and Yahoo OpenID implementations both respect the "required" in Attribute Exchange, but not all the attributes you're looking for. Here are their respective documentations listing what attributes their schema supports.

https://developers.google.com/accounts/docs/OpenID#Parameters

At the time of this posting, these are the currently supported fields for Google

  • country
  • email
  • firstname
  • language
  • lastname

http://developer.yahoo.com/blogs/ydn/yahoo-openid-now-attribute-exchange-7795.html

At the time of this posting, these are the currently supported fields for Yahoo

ikumen
  • 11,275
  • 4
  • 41
  • 41
  • yahoo url: clicking the item gets 404. google url: so many info that i am loss. can you just tell me the usable fields in $openid->required? thank a lot – manhon Jun 25 '13 at 15:35
  • supported fields are right there on the two links i posted, i believe axschema is superseded by openid.net, but field names are still same – ikumen Jun 25 '13 at 16:05