Best Solution For Authentication in Ruby on Rails [closed]

AuthLogic appears to be the new kid on the block and seems to be the next evolution of restful_authentication, easier to use, etc

http://github.com/binarylogic/authlogic/tree/master

Edit: now that Rails 3 is out, Devise seems to be the new, new kid on the block

https://github.com/plataformatec/devise or I have been rolling my own authentication now with the has_secure_password built in to Rails http://railscasts.com/episodes/250-authentication-from-scratch-revised

Side note: Ruby Toolbox is a great site for finding the current best solution in various categories (based on the number of GitHub watchers):

http://ruby-toolbox.com/categories/rails_authentication.html


I would really recommend Restful Authentication. I think it's pretty much the de-facto standard.


For a really simple solution go with Clearance.

If you are looking for more options Devise is a great solution. It uses Warden which is a rack based authentication system.


There's also RestfulOpenIDAuthentication if you want OpenID support in addition to password support.


Just a note, LoginGenerator and SaltedLoginGenerator have been superseded by Restful Authentication and are unsupported on newer Rails releases -- dont waste any time on them, though they were great at the time.