Php 谷歌和雅虎的OpenID实现是否尊重;“必需”;属性
我想使用OpenID(PHP和LightOpenID)获取以下用户信息:Php 谷歌和雅虎的OpenID实现是否尊重;“必需”;属性,php,openid,lightopenid,Php,Openid,Lightopenid,我想使用OpenID(PHP和LightOpenID)获取以下用户信息: $openid->required = array( 'namePerson', 'namePerson/first', 'namePerson/last', 'contact/email', 'person/guid', 'birthDate/birthYear', 'birthDate/birthMonth',
$openid->required = array(
'namePerson',
'namePerson/first',
'namePerson/last',
'contact/email',
'person/guid',
'birthDate/birthYear',
'birthDate/birthMonth',
'birthDate/birthday',
'gender',
);
然而,我发现雅虎和谷歌都只返回以下数据:
Array ( [namePerson] => abc [contact/email] => abc@example.com )
我的代码有问题吗?我可以强制Google和Yahoo返回我想要的所有数据吗?Google和Yahoo OpenID实现都尊重属性交换中的“必需”属性,但不是您要查找的所有属性。下面是他们各自的文档,列出了他们的模式支持的属性 在发布时,这些是当前支持的字段 对于谷歌
- 国家
- 电子邮件
- 名字
- 语言
- 姓氏