8. Strategy
• How you authenticate
• Password
• OAuth
• Implement 2 methods: valid? & authenticate!
9. Failure
• A rack endpoint
• Handle failure for authentication
• In short: throw(:warden)
10. Callback
• Provide various callbacks to hook into in
authentication cycle (set user, authenticate
success, failure, …)
• Behave similar to Rails callbacks
11. User & Scope
• Set & get user simply by set_user and user
• Scope of user for some scenarios:
• Multiple roles
• Stimulate another user
12. Session
• Store user data in separate scope
• Access through session
• Work like a simple hash