Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails User Management Engine/Framework? (with web pages)

There are quite a few post/recommendations re Rails authorization plugins. What I'm asking here however is whether there is a popular/good Ruby on Rails Engine (or framework) that includes the user interface pages as well (and controllers/models etc). So something one could integrate in (Engine) or use as a starting point that includes:

  • sign up (e.g. user creates a login, then email is sent with activation link)
  • authentication
  • authorization
  • User interface allowing user to:
    • change password
  • Delegated Administration (Optional)
    • supports multiple/separate companies/groups using the same application
    • Admin User for Company/Group X, and allocate access to Person Y (create a new user)
    • UI to allow user to perform these functions

I threw in the last delegated administration as an optional extra. If there a good/populate product that doesn't have this I'd rather hear about it.

Thanks in advance

like image 401
Greg Avatar asked Sep 21 '09 23:09

Greg


2 Answers

I think you can get most of the way there using clearance, but you'll need to implement authorization separately.

Clearance is a Rails engine that will give you

  • sign_up
  • Authorization
  • Forgot your password
  • Remember me
  • Very easy to customize
like image 158
hgmnz Avatar answered Oct 05 '22 11:10

hgmnz


I prefer using Authlogic(for authentication) and Lockdown(for roles) in combination. They are both in a stable state and work well!

Just have a look at the authlogic/lockdown tutorial at http://stonean.com/page/lockdown-with-authlogic.

The Authlogic example application available on github may show you some sample code for registration, changing password etc.

like image 43
brainfck Avatar answered Oct 05 '22 12:10

brainfck