雅虎的属性交换->的空白数据来了
-
22-09-2019 - |
题
我在试图建立openid登录系统,用我的网站。要做到这一点,我用的 JanRain的php openid库 v2.1.3.
我也使用 openid选择 选择openid供应商从名单。
我第一次创建的属性阵列,我需要获取从提供如下:
$attribute[] = Auth_OpenID_AX_AttrInfo::make('http://axschema.org/contact/email',2,1, 'email'); $attribute[] = Auth_OpenID_AX_AttrInfo::make('http://axschema.org/namePerson/first',1,1, 'firstname'); $attribute[] = Auth_OpenID_AX_AttrInfo::make('http://axschema.org/namePerson/last',1,1, 'lastname'); $attribute[] = Auth_OpenID_AX_AttrInfo::make('http://axschema.org/namePerson',1,1, 'fullname'); $attribute[] = Auth_OpenID_AX_AttrInfo::make('http://axschema.org/namePerson/friendly',1,1, 'username'); $ax = new Auth_OpenID_AX_FetchRequest; foreach($attribute as $attr) { $ax->add($attr); } $auth_request->addExtension($ax);
并在finish_auth.php 文件我写了这个来获取属性返回
$ax = new Auth_OpenID_AX_FetchResponse(); $obj = $ax->fromSuccessResponse($response);
谷歌给我的所有属性的要求,但是,雅虎无(如说 在这里, 雅虎现在支持的属性交换)。
是否有任何限制,设在雅虎的属性交换。(他们得到有限的网站访问中断开放则中断服务扩展的openid).:(
请帮帮我我被卡住在这里。
感谢
解决方案
问题对雅虎解决了!!!看看这里: php-openID不起作用雅虎
不隶属于 StackOverflow