Authentication including Authorization (Roles/Rights/Permissions)

It’s been couple of days messing around with Internet looking for a good Authentication including Autorization system/plugin for Ruby On Rails.

I’ve found lots of sources related to that. However, most of them are old, not frequently updated, not even well documented.

Please, any suggestions/solution considering Rails 2.1?

Thanks in advance.

a2f

I will list two for you, but I still recomend a search on Github:

- Lockdown - http://github.com/stonean/lockdown/

- Restful-Authorization - http://github.com/jbarket/restful-authorization/

I personally prefer this:

http://github.com/DocSavage/rails-authorization-plugin/tree/master

Adriano Ferreira wrote:

It's been couple of days messing around with Internet looking for a good Authentication including Autorization system/plugin for Ruby On Rails.

I've found lots of sources related to that. However, most of them are old, not frequently updated, not even well documented.

Please, any suggestions/solution considering Rails 2.1?

Thanks in advance.

a2f

I've been using Authlogic, and love it. It's fairly new, so doesn't have the recognition or contributions that restful-authentication does. However, I find that Authlogic's design philosophies are more in tune with me than, say, restful-authentication's. -Nick

Nick

I have been reading through the Authlogic docs and it seems nice and sleek. I think I will test it on my app. Thanks,

Elías

http://wiki.rubyonrails.com/rails/pages/Authentication

I normally use a bit on the user, to use a more rolebased approach. bool (admin) So in your controller you can just use user.admin? to verify if they are allowed access to the function.

regards svend