Which Rails authentication system is better: AuthLogic, Clearance or Devise?

I would like to implement a third-party Ruby on Rails authentication system, which is being actively developed and has reasonable defaults.

I narrowed my choices to AuthLogic and Clearance (thought) - can anyone influence me in any direction? In terms of requirements, both will work for my project from what I can say. It looks like the documentation / code samples are pretty similar in both cases, and they are relatively easy to set up.

Does anyone prefer it? I really like the AuthLogic OpenID plugin - I don't know if Clearance can do this.

+5
source share
4 answers
+7
source

I used restful_authentication gem, authLogic and Devise , and I like developing because it is model-based (higher stack is better and easier rspec) and also allows you to simply add the admin flag to the user table for administrators and go with it (or use roles for more complicated things).

Another gem that has become common with design cancan for roles , for example. administrator, reader, manager, etc. (no matter what you want) with the syntax as shown below (from cancan gem ).

<% if can? :update, @article %>
  <%= link_to "Edit", edit_article_path(@article) %>
<% end %>
+3

Devise - ?

, Rails. openID, OmniAuth, .

+2

, .

(Wagn, . http://wagn.org), . , , , :

1) API .

, , , AR- ( ), . :

2) , ( , , Rack).

Devise, , auth. , auth, Rails .

, .

+2

All Articles