Devise: Flexible Authentication for Pragmatic Rails Developers
Devise (GitHub repo) is a new Rails authentication library/engine developed by Brazilian development company Plataforma. It's pitched as a "flexible authentication solution for Rails." Devise builds upon Warden, a general Rack authentication middleware, while offering Rails developers a flexible but easy to use front end.
Plataforma's blog post about Devise says that it's different to the incumbent libraries, Clearance and Authlogic, in that it provides a full stack solution like Clearance (unlike Authlogic) but allows you to use a custom model (not just "User") and gives you customized role support. It also has full i18n (internatiionalization) support out of the box and Plataforma has made available a complete demo app showing off how Devise can work within a small Rails app.
Devise is a full stack authentication system that provides 5 "strategies" out of the box. A strategy for authentication, one for "confirmations" (e-mails, etc), one for "recovering" accounts, one for "remembering" logins over time, and one to "validate" signups. You can, however, add your own strategies depending on what you need to do (they suggest a "invitations" strategy).
November 5th, 2009 at 2:12 am
Hey Peter,
Thanks for covering our work on Rails Inside!
Just today we released a new blog post, telling about the generators added to Devise.
Maybe you could update the post to include a link to the new post as well?
http://blog.plataformatec.com.br/2009/11/devise-authentication-for-lazy-programmers/
Thanks!
November 5th, 2009 at 1:07 pm
I actually like the fact that numerous authentication engines are coming around. It seemed like for so long, restful_auth was the de facto standard. Options are good, and I like that each library has certain tradeoffs.
November 6th, 2009 at 5:13 am
[...] just after bitching about Devise and how it wasn't working, I see an unread post in my RSS on Devise authentication, including a sample [...]
November 10th, 2009 at 2:20 pm
Wow! You guys covered a lot on this one! Forked!
Will surely use this on one of my upcoming projects!
Great work, guys!
November 15th, 2009 at 2:00 pm
[...] Devise: Flexible Authentication for Pragmatic Rails Developers [...]
June 8th, 2010 at 12:26 pm
How will we configure mailer?