/devise_header_token

Add header token authentication support for Devise.

Primary LanguageRuby

devise_header_token

Patches in support for token authentication via headers rather than basic auth or request params for Devise's token_authenticatable strategy.

This is currently without tests.

Usage

In your Gemfile:

gem 'devise'
gem 'devise_header_token'

In your config/initializers/devise.rb, set the header key:

config.token_authentication_key = 'X-API-TOKEN'

And it all should Just Work™.

This gem is maintained by Stovepipe Studios