Save 37% off PRO during our Black Friday Sale! »

Devise -- Essential Rails Gems

Devise -- Essential Rails Gems

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

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

3b5cb0411cbd1012acab1b60f7ce3606?s=128

Jesse Wolgamott

November 14, 2012
Tweet

Transcript

  1. DEVISE Essential Rails Gems by @jwo for @houstonrb Wednesday, February

    13, 13
  2. Timeline of Rails Past acts_as_authenticated - 2007 restful_authentication - 2008

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

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

    Don't have multiple profiles Copy views to match your style Wednesday, February 13, 13
  5. Third Party Logins omni_auth Twitter Facebook Github Google Wednesday, February

    13, 13
  6. 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
  7. 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
  8. Testing RSpec.configure do |config| config.include Devise::TestHelpers, type: :controller end Wednesday,

    February 13, 13
  9. Other Stuff You Does Admin class in addition to User

    class API logins Create users outside of Devise Wednesday, February 13, 13
  10. Alternatives has_secure_password (roll your own) sorcery (ironically no magic) Wednesday,

    February 13, 13
  11. Criticisms too much black box difficult to customize controllers Wednesday,

    February 13, 13