This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jun 10 05:21:13 -0700 2009 | |
| |
LICENSE | Wed Jun 03 08:01:48 -0700 2009 | |
| |
README.textile | Wed Jun 03 19:11:22 -0700 2009 | |
| |
Rakefile | Tue Sep 08 21:59:25 -0700 2009 | |
| |
TODO | Wed Jun 03 08:01:48 -0700 2009 | |
| |
VERSION | Mon Dec 07 03:59:49 -0800 2009 | |
| |
lib/ | Mon Dec 07 03:59:49 -0800 2009 | |
| |
rails_warden.gemspec | Mon Dec 07 03:59:49 -0800 2009 | |
| |
script/ | Wed Jun 03 08:01:48 -0700 2009 | |
| |
spec/ | Mon Nov 16 20:44:42 -0800 2009 |
README.textile
Rails Warden
Provides authentication for Rails applications via the Warden Rack authentication framework.
Require the gem:
config/environment.rb
config.gem "rails_warden"
Setup an initializer:
config/initializers/warden.rb
Rails.configuration.middleware.use RailsWarden::Manager do |manager|
manager.default_strategies :my_strategy
manager.failure_app = LoginController
end
# Setup Session Serialization
Warden::Manager.serialize_into_session{ |user| [user.class, user.id] }
Warden::Manager.serialize_from_session{ |klass, id| klass.find(id) }
# Declare your strategies here
#Warden::Strategies.add(:my_strategy) do
# def authenticate!
# # do stuff
# end
#end







