No commit activity in last 3 years
No release in over 3 years
Customize basic auth header when using token_authenticatable with devise.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

devise_custom_token

Devise strategy for customizing the authentication token used in basic authentication header. With this strategy you can set the non-password portion of the header to an arbitrary string ("token" by default). This can be placed in any order, e.g. curl -utoken:mypassword http://someplace or curl -umypassword:token http://someplace

To use: Add to your gemfile (gem devise_custom_token) and in your devise initializer require 'devise/devise_custom_token'

To configure the non-password string set Devise::non_token_auth_value in your devise initializer.