Zend OpenId and Google

2019-09-16 01:34发布

问题:

Does the current Zend_OpenId ( Release 1.10.8 ) work with Google? I am working on a project that will only use OpenId ( and maybe OAuth ) as the login and would love to know before spending countless hours with the dreaded Zend Framework :)

回答1:

Nope, currently it does not.

But there is a lot of similar articles about how to "patch" zend_oauth to be able to work with openid 2.0

Like this: http://framework.zend.com/issues/browse/ZF-6905

It really works, i use such solution for about half of year without any troubles.

ps: due to it is a some kind of "dirty hack" - this solution does not provide ability of retrieving additional info, such as name, email, etc.



回答2:

No, Zend_OpenId doesn't work with Google without patching.

You should use instead janrain implementation (http://openidenabled.com/php-openid/). It supports the OpenID Google Apps discovery.