Skip to content
Example OpenID, Facebook and Twitter authentication with Zend Framework 1.11.3
PHP JavaScript
Find file
New pull request
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



This is an example Zend Framework 1.11.3 application that uses OpenID (Google,
Yahoo, MyOpenId, AOL, OpenId) as well as Facebook Connect and Twitter Oauth for
authentication of users.

To make it all work the following elements were used:
 - openid-selector
 - My_Auth_Adapter_Facebook by Michael Krotscheck
 - My_Auth_Adapter_Oauth and My_Auth_Adapter_Oauth_Twitter by Jason Austin
 - My_OpenId_Extension_AttributeExchange by Chris Bisnett
 - Patched Zend_OpenId_Consumer (

In some cases some slight modifications were made to the above elements.


The application contains everything that it needs to run, including full
Zend Framework 1.11.3 (with patched  Zend_OpenId_Consumer). The exceptions are Facebook and Twitter app keys that need to
be included in appkeys.ini. Normally, Facebook and Twitter require every application that uses their API to be 
registered with them. Once an application is registered,  a user gets app id and a secret key. When you have those keys 
you need to make an appkeys.ini file ( appkeys_example.ini example provided) with your own keys.

Zend_Auth_Adapter_OpenId uses file based storage. For this reason, the application
must be able to create, write and read APPLICATION_PATH . '/../tmp' folder.

It was reported that extension=php_openssl.dll should also be enabled in php.ini.


Something went wrong with that request. Please try again.