Example OpenID, Facebook and Twitter authentication with Zend Framework 1.11.3
PHP JavaScript
Latest commit 20245f6 Oct 4, 2011 marcin new url for demo added
Failed to load latest commit information.
library/Zend Profile information added Feb 27, 2011
public "small" providers removed. Jul 5, 2011
tests Profile information added Feb 27, 2011
README new url for demo added Oct 4, 2011



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 (http://framework.zend.com/issues/browse/ZF-6905)

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.