authlogic_openid_selector_example
authlogic_openid_selector_example copied to clipboard
Unified login for rails using the Authlogic authentication library, OpenID and the OpenID Javascript Selector (Gmail, Yahoo, etc) + Facebook and Auto registration.
= 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: http://big-glow-mama.heroku.com
Please check the following pages to find more information about the applications used to build this example:
- Original Authlogic Example App: http://authlogicexample.binarylogic.com
- Authlogic: http://github.com/binarylogic/authlogic
- Authlogic OpenID: http://github.com/binarylogic/authlogic_openid
- Auto_register version that works http://github.com/gaizka/authlogic_openid
- Javascript OpenID-Selector (based on JQuery): http://code.google.com/p/openid-selector/
- Facebook integration http://github.com/kalasjocke/authlogic_facebook_connect
- Inspiration http://github.com/vazqujav/authlogic_openid_selector_example
== What does this example app contain?
- OpenID User registration using Javascript OpenID-Selector.
- 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 Facebook/Google/Yahoo etc.
- A my account area where the user can view / delete his account.
- Login/Logout functionality.
- 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.
- Count how many users are logged in / out in your system.
== Status
- 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
- Auto registration works but does not currently capture the email as it does during normal registration? http://stackoverflow.com/questions/1748629/authlogic-autoregister-feature-using-my-options
== Todo
- Use this application to build a Rails plugin...feel free to help me on this one!
- Fix auto registration for correct capturing of emails and get rid of registration altogether
- 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)
== Misc.
Some fine tuning is needed.