Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
warden<br />
wardenequipping yourself to better understand devise<br />
any love for devise?<br />
okay, so what is warden?<br />
a mechanism for authentication in rack based ruby applications<br />
Warden is upstream of some session middleware<br />Creates an env[‘warden’] proxy<br />Authentication can be shared betwee...
sweet, why should I learn more about it?<br />
create custom light-weight authentication middleware<br />share authentication between multiple Rack apps (rails & sinatra...
Because it’s way awesome!<br />
Mission Debriefing<br />user<br />strategy<br />failure app<br />scope<br />
user – any object that can be serialized into the session marking a request authenticated.<br />
strategy – a place to keep logic for a certain method of authenticating a request<br />
failure app – a specified rack endpoint after all authentication strategies have failed<br />
scope – a grouping of warden configuration settings.<br />WARNING! This is very oversimplified<br />
env[‘warden’].user(:api)env[‘warden’].authenticated?(:admin)<br />
Demo!<br />*crosses fingers*<br />
Surprisingly nice…<br />
Upcoming SlideShare
Loading in …5
×

Demystifying Warden

4,292 views

Published on

Better position yourself for understanding how devise works

  • Be the first to comment

Demystifying Warden

  1. 1.
  2. 2. warden<br />
  3. 3. wardenequipping yourself to better understand devise<br />
  4. 4. any love for devise?<br />
  5. 5. okay, so what is warden?<br />
  6. 6. a mechanism for authentication in rack based ruby applications<br />
  7. 7. Warden is upstream of some session middleware<br />Creates an env[‘warden’] proxy<br />Authentication can be shared between several Rack apps <br />
  8. 8. sweet, why should I learn more about it?<br />
  9. 9. create custom light-weight authentication middleware<br />share authentication between multiple Rack apps (rails & sinatra)<br />better understand higher level libraries that use it (i.e. devise)<br />and, well…<br />
  10. 10. Because it’s way awesome!<br />
  11. 11. Mission Debriefing<br />user<br />strategy<br />failure app<br />scope<br />
  12. 12. user – any object that can be serialized into the session marking a request authenticated.<br />
  13. 13. strategy – a place to keep logic for a certain method of authenticating a request<br />
  14. 14.
  15. 15. failure app – a specified rack endpoint after all authentication strategies have failed<br />
  16. 16. scope – a grouping of warden configuration settings.<br />WARNING! This is very oversimplified<br />
  17. 17. env[‘warden’].user(:api)env[‘warden’].authenticated?(:admin)<br />
  18. 18. Demo!<br />*crosses fingers*<br />
  19. 19. Surprisingly nice…<br />

×