How do I implement Direct Identity based OpenID authentication with Zend OpenID

后端 未结 7 989
别那么骄傲
别那么骄傲 2020-12-07 17:55

I\'m using the Zend framework and the openid selector from http://code.google.com/p/openid-selector/ - however I find I can\'t login using sites like Google and Yahoo as the

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 18:38

    Going over all the advice provided - I've decided to ditch using the zend_openid class [ sorry about that zend ] and instead I've switched to using JanRains OpenID library. Its taken a few hours to get it up and running with my project but atleast its working like a breeze. Had to make a lot of hacking and a bit of code spill over to get it working but its worth it.

    I couldn't use any of Zend adapters with Zend-Auth to settle this new code library in as the library did the authentication on its own. SO I hacked and made a generic adapter that just returned a filled zend_result set to the Auth object thus I authenticate using my library and merely store the result in the Auth object pulling a bit of a fast one one the Zend-Auth object rather than have to rewrite my code again.

    The library is available at http://openidenabled.com/php-openid/

    Thanks for all the help guys.

提交回复
热议问题