Description

From the link:
Little late to the game but I was able to get this working with some hacks I found around the interwebs.

First. Yahoo. To get Yahoo working all I had to do was change the JavaScript to use me.yahoo.com instead of just yahoo.com and it worked perfectly with the version of the Zend Framework I'm using. Unfortunately Google still wasn't, so some hacking was in order.

All of these changes go in Zend/OpenId/Consumer.php

First, in the _discovery method add the following on the series of preg_match checks that starts at around line 740.

Thanks for the hack.
We definately need official support of 2.0 version of OpenId.
When will it be..?

Posted by Niek Bosch (eekhoorn13) on 2010-08-11T09:26:48.000+0000

I've done this for my own website. It's probably not conform all Zend Framework standards and it lacks unit testing and all that. Nevertheless, it will probably help you a great deal. When I'm more at home in this contributing thing, I'll do more work myself. For now it supports:

XRI (not tested in this version)

Yadis discovery

XRDS document parsing (as is needed for XRI and Yadis)

HTML discovery (not changed)

It works with google and with myopenid.com

Posted by Torio Farazdagi (torio) on 2010-08-11T10:17:31.000+0000

Thanks Niek! Will look into the supplied code and accommodate for ZF standards + UTs.

Posted by DJ (cloakedninjas) on 2010-08-16T04:22:20.000+0000

While the attached script does allow for authentication with Google, Yahoo - or any other v2.0 provider still won't.

The login() method works fine, but in this case the verify() method is unable to discover the data because Google sends back the identity in a format similar to this:
* http://example.com/openid/123456789

I don't know if its a Google problem, or a Zend problem. But i had to comment the lines below to ignore the discovery on verify().