devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Controllers::SignInOut#bypass_sign_in
Sign in a user bypassing the warden callbacks and stores the user straight in session. This option is useful in cases the user is already signed in, but we want to refresh the credentials in session. Examples: bypass_sign_in @user, scope: :user bypass_sign_in @user
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/controllers/sign_in_out.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Controllers--SignInOut-bypass_sign_in-for-pr
# Commit to gitgit add lib/devise/controllers/sign_in_out.rbgit commit -m "better docs for Devise::Controllers::SignInOut#bypass_sign_in"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise--Controllers--SignInOut-bypass_sign_in-for-pr
hub pull-request
# Celebrate!