Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Devise -- Essential Rails Gems

Devise -- Essential Rails Gems

Houston Ruby Brigade; intro to Devise, the essential authentication system

Demo at: http://youtu.be/Ie8Ez8vXAIg

Jesse Wolgamott

November 14, 2012
Tweet

More Decks by Jesse Wolgamott

Other Decks in Technology

Transcript

  1. Timeline of Rails Past acts_as_authenticated - 2007 restful_authentication - 2008

    authlogic - 2008/2009 devise - 2009 Wednesday, February 13, 13
  2. The Essential Rails authentication system gem install devise rails g

    devise:install rails g devise user before_filter :authenticate_user! Wednesday, February 13, 13
  3. Easiest Path Forward Just add name / address to User

    Don't have multiple profiles Copy views to match your style Wednesday, February 13, 13
  4. Other Cool Stuff token authentication APIs Views that are built

    in Reset Passwords built in Emails built in confirming emails email and/or login as authentication variable Wednesday, February 13, 13
  5. More on Token Auth Authentication via basic HTTP auth Via

    url parameter /resource/34?token=boblawblaw Custom auth: http://git.io/VwdG4Q Wednesday, February 13, 13
  6. Other Stuff You Does Admin class in addition to User

    class API logins Create users outside of Devise Wednesday, February 13, 13