我使用这个OpenID component for CakePHP,一切都是正确的。但当我在OpenID提供商网站(如谷歌或雅虎)“同意”重定向回我的网站时,我什么都没得到(我看到一个白页),而当我“取消”正确地重定向回我的网站并看到“验证取消”
我知道这是一个简单而有趣的问题,但这让我很困惑:/
由于
---(添加此说明)
有趣的是,当我刷新相同的“白页”时,我看到我的重定向返回页面并收到错误“OpenID验证失败:Nonce已经使用或超出范围”,我知道此错误适用于I logged in twice in a row, with less than 60 seconds in between each login.
并在此页面中$ _GET为:
Array
(
[url] => customers/openid
[janrain_nonce] => 2011-06-29T10:33:00ZC9U4Ck
[openid_ns] => http://specs.openid.net/auth/2.0
[openid_mode] => id_res
[openid_op_endpoint] => https://www.google.com/accounts/o8/ud
[openid_response_nonce] => 2011-06-29T10:33:11Z-B2z_uR5VAQASA
[openid_return_to] => http://localhost/workspace/pizza/trunk/customers/openid?janrain_nonce=2011-06-29T10%3A33%3A00ZC9U4Ck
[openid_assoc_handle] => AOQobUfLKujamA-gQWw_ut30QDRSYo3GB6EXAGZKRvP3jLPqyeBUcXDO
[openid_signed] => op_endpoint,claimed_id,identity,return_to,response_nonce,assoc_handle
[openid_sig] => 0ybRsTcHgnbZgky1W2sBCVReQfU=
[openid_identity] => https://www.google.com/accounts/o8/id?id=AItOawlLohXvzacux-0FDSCLhYLBWESoy8vLjXs
[openid_claimed_id] => https://www.google.com/accounts/o8/id?id=AItOawlLohXvzacux-0FDSCLhYLBWESoy8vLjXs
)
-url是正确的,cuz在取消时真正重定向