Unified login for rails using the Authlogic authentication library, OpenID and the OpenID Javascript Selector (Gmail, Yahoo, etc) and Auto registration (No need to register seperately).
Ruby JavaScript
Pull request Compare This branch is 11 commits ahead of holden:with-facebook.
Latest commit 73618a1 Aug 16, 2010 @shripadk Was not working with javascript disabled. Fixed. I love this cool inl…
…ine edit feature in github. No need to git push for minuscule changes!


Authlogic OpenID-Selector Example

This is an example of how to use Authlogic in combination with the Javascript OpenID-Selector and Facebook authentication thrown in a Rails app.

Live Example can be found here: testingauth.heroku.com/

Please check the following pages to find more information about the applications used to build this example:

What does this example app contain?

  1. OpenID User registration using Javascript OpenID-Selector.

  2. Automatically log users in upon successful OpenID registration, saving his OpenID identifier and (if returned) his email address.

2b. Auto Registration of users, no registration required for first time Google/Yahoo etc.

  1. A my account area where the user can view / delete his account.

  2. Login/Logout functionality.

  3. Automatically store information on the users and their session in the databases. Such as login count, IP address, when they logged in last, and when their last activity occurred.

  4. Count how many users are logged in / out in your system.


  • Auto-Register works now. Thanks to this commit:

github.com/mreinsch/authlogic_openid/commit/4a1f644be36aec75ae2d35121904b5a846354233 by mreinsch.

  • Fetching email using sreg and ax works

  • Flickr OpenID doesn't seem to work at all…

  • Facebook works… though logging out and trying to then use an Open ID provider a bit buggy Removed Facebook for now. Till it is fixed.


  • Use this application to build a Rails plugin…feel free to help me on this one!

  • Replace Open ID registration with simple old school registration for users who don't want to use OpenID at all or facebook, etc.

  • Twitter addition? (OAuth)


Some fine tuning is needed.