Does any one know of a brief history of Ruby on Rails log in system? As far as I know, there are 5:
write everything yourself (wit开发者_Python百科h or without Rails' session)
Acts_as_Authenticated written by the same person who wrote Restful Authentication, but is not RESTful.
Restful Authentication (also called the AuthenticatedSystem module), which is by
script/generate authenticated user sessions
and the code is mainly inlib/authenticated_system.rb
AuthLogic
Devise
Is this how it evolved -- does anyone know the early history of it -- for example, when Rails first started, was Restful Authentication already there?
Restful Authentication was the first Rails authentication solution. Its first commit is dated June 30, 2006. At that time, Rails 1.0 was already released. Actually, Rails 1.1.4 was released on June 29, 2006.
Restful Authentication was then replaced by Authlogic. The advantages of the latter are that it doesn't create complex scaffold, thus you can easily upgrade the Gem without too much effort.
Authlogic has never been updated for Rails 3. Furthermore, Rails 3 is a full Rack stack and Devise is the first authentication system that can handle this kind of architecture.
Almost contemporary of Devise is Clearance, the authentication system released by Thoughtbot. It is a Rails 3 engine and it intentionally provide only the basic features of a login system. It was extracted from their app Hoptoad.
精彩评论