devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise.warden
Sets warden configuration using a block that will be invoked on warden
initialization.
Devise.setup do |config|
config.allow_unconfirmed_access_for = 2.days
config.warden do |manager|
# Configure warden to use other strategies, like oauth.
manager.oauth(:twitter)
end
endEdit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise-warden-for-pr
# Commit to gitgit add lib/devise.rbgit commit -m "better docs for Devise.warden"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise-warden-for-pr
hub pull-request
# Celebrate!