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
 end

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise-warden-for-pr


# Commit to git

git add lib/devise.rbgit commit -m "better docs for Devise.warden"


# Open pull request

gem 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!