Skip to main content

Authentication

I was just going through the possible authentication available with RoR.
Here is what I found.

Authentication Systems

Several authentication modules have been written for Rails, but some are better at some things and some are better than others.

acts_as_authenticated

This should be the prefered authentication plugin. It is easily installed via script/plugin, is easily extendible and can handle all issues of the other authentication modules. Additionally, the testing code is excellent which makes it easy to modify.

login_generator

login_generator is the original login generator gem written by Tobias Luetke. The downside is that there is a bug which scrambles the password if you save an already existing user. It should not be used for this reason. It is replaced and superceded by acts_as_authenticated.

SaltedHashLoginGenerator

This was a first attempt at created a salted login generator which could reset passwords and do activation. It has since been extracted into login_engine. It is in general bloated and hard to modify. It should be avoided.

login_engine

login_engine is the extraction of SaltedHashLoginGenerator, and as such, has the disadvantages that SaltedHash has. Additionally, it uses the Rails Engines system which is designed for drop in use. In general, applications need customization. If you need more than simple modification of an authentication system, this should be avoided.


I'm planning to implement acts_as_authenticated.

Regards,

Rajan

Comments

Popular posts from this blog

Restful Authentication with RoR implemented

http://agilewebdevelopment.com/plugins/restful_authentication rajan-chandis-macbook-air:~ rajanchandi$ rake db:sessions:create rajan-chandis-macbook-air:~ rajanchandi$ script/plugin install http://railsexpress.de/svn/plugins/sql_session_store/trunk/ rajan-chandis-macbook-air:~ rajanchandi$ script/generate authenticated user sessions --include-activation Regards, Rajan