views:

178

answers:

4

So I do not reinvent the wheel, what is the best way to setup a registration, login, logout and password reset framework for Ruby on Rails? Ideally, there must be a gem (library, package, etc) that handles this??

Thanks in advance!

+7  A: 

Authlogic, see this Railscast, and restful_authenticaction, see this Railscast.

Those two should be a good starting point.

cite
+1 for railscast links.
theIV
+3  A: 

Authlogic and restful-authentication are two of the big ones. Also, have a look at the search results on SO.

theIV
Does restful-auth have password resets?
Ryan Bigg
+2  A: 

RESTful authentication plugin:

"Restful Authentication has been the standard authentication plugin/gem for Ruby on Rails for a long time. It works nicely and has hooks for role authorization."

Also, Authlogic plugin which is a common authentication plugin.

rogeriopvl
+2  A: 

Check out Thoughtbot's clearance. Install the gem and its up and running - it is a Rails engine.

If all you need is what you originally asked, this is easier by far. If you intend to add OpenID or more complex scenarios, Authlogic is the way to go.

hgimenez