views:

61

answers:

2

i have done a very simple setup with a test myopenid account

require_once "Zend/OpenID/Consumer.php";

$openid_id = "http://testphp.myopenid.com/";
$consumer = new Zend_OpenId_Consumer();

if (!$consumer->login($openid_id, "http://localhost/php/openid/oid_return.php")) {
  die("failed");
}

echo "OK";

when i try to use Google OpenID (set $openid_id = "https://www.google.com/accounts/o8/id") it fails. i guess that is just the endpoint/provider not the identifier. how can i then fix this problem? i guess it will be a similar fix for yahoo etc too?

A: 

You can get more info by calling $consumer->getError();

But I think Google OpenID is not supported (see http://zendframework.com/issues/browse/ZF-6905)

Maxence
A: 

Zend_OpenID not supported OpenID 2.0 protocol

ErgallM