devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::FailureApp#http_auth_header?

It does not make sense to send authenticate headers in ajax requests
or if the user disabled them.

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/failure_app.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--FailureApp-http_auth_header--for-pr


# Commit to git

git add lib/devise/failure_app.rbgit commit -m "better docs for Devise::FailureApp#http_auth_header?"


# 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--FailureApp-http_auth_header--for-pr

hub pull-request


# Celebrate!