A Twitter Adapter for Zend_Auth

  • Christian Stocker

From time to time I write some little scripts for my own needs or just to test out new stuff. And I realised, that I blog about it way too little. So here I start with my latest addition: Zend_Auth_Adapter_Twitter

The occasional webapp needs a login for managing users. Doing that by yourself is 1) cumbersome and moreover 2) very outdated (who likes to remember login/password for each and every site). As I was playing with oauth for Twitter anyway lately, I came up with a Zend_Auth Adapter for Twitter. The integration was pretty easy, but the code is very basic and rough. Nevertheless, it does the job and alongside the Openid Adapter I can offer a federated login for many people already. Now, someone should do a Zend_Auth_Adapter_Google :)

The code and a super simple example can be found in our SVN repository, it also needs the Zend_Auth_Result_Twitter class. And here's the “Live Demo”


Tell us what you think