我是 OpenID 概念的新手,最近尝试使用JanRain PHP 5 系统为 CodeIgniter实现OpenID 库。然而,在从谷歌和雅虎等网站检索简单数据时遇到了一些问题......
我的 OpenID 库的配置文件如下所示:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['openid_storepath'] = 'tmp';
$config['openid_policy'] = 'test/policy';
$config['openid_required'] = array('email');
$config['openid_optional'] = array('fullname');
$config['openid_request_to'] = 'test/check';
?>
但是,我无法获得“电子邮件”或“全名”值。我尝试填写其他字段(如“昵称”),但这也没有产生结果。此外,JanRain 文档中指定的许多其他选项(例如“verifiedEmail”和“preferredUsername”)仅导致 SREG 错误。
身份验证成功,因为它们返回成功消息,但我如何访问我请求的信息?
编辑:这是返回网址:
http://www.{Site}.net/v2/test/check?janrain_nonce=2011-12-10T05:53:01ZFXVT02&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.return_to=http%3A%2F%2Fwww.{Site}.net%2Fv2%2Ftest%2Fcheck%3Fjanrain_nonce%3D2011-12-10T05%3A53%3A01ZFXVT02&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2F{Token}%23df6f7&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2F{Token}&openid.assoc_handle={Handle}&openid.realm=http%3A%2F%2Fwww.{Site}.net%2Fv2%2F&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.response_nonce=2011-12-10T05%3A53%3{Nonce Token}&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cpape.auth_level.nist&openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&openid.pape.auth_level.nist=0&openid.sig=CUa39ZjhGE8nWc7TMvbS8UFlwjQ%3D
谢谢!