~/talk

Warden: the building block behind Devise

Talkat RailsConf 2018 · 2018-04-17..04-19· [ruby-on-rails, security]
github:tegon
slides:none on file

Warden is a Rack middleware that Devise uses to manage sign‑in, sign‑out and sessions; it runs after a session middleware and provides a Warden object in env for calls like authenticate and user. The talk demonstrates custom Warden strategies (email+password, remember‑me), upgrades passwords to bcrypt, and builds a working example that returns a set‑cookie header on success and a 401 failure app with the strategy message on failure. It also covers scopes in session and authentication callbacks.

AI-written summary · about

  1. 0:00Start
  2. 4:06Rack application
  3. 4:51Rack middleware
  4. 6:04Rack app example
  5. 7:37Session serialization
  6. 8:25email & password strategy
  7. 9:19Methods available inside strategies
  8. 9:55Using a strategy
  9. 11:36Warden setup
  10. 13:35Encrypting a password
  11. 14:48e-commerce
  12. 15:40Multiple models with devise
  13. 16:59Using scopes
  14. 17:40Scope configuration
  15. 21:28Prepend callbacks
  16. 22:04Review
  17. 23:14Benefits of knowing how a Gem works
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.