stvp / devise_header_token Goto Github PK
View Code? Open in Web Editor NEWAdd header token authentication support for Devise.
License: MIT License
Add header token authentication support for Devise.
License: MIT License
I am unable to install Active Admin in my Rails 4.1 project. Rails generator complains about this gem:
devise_header_token-1.0.0/lib/devise_header_token/header_token_authenticatable.rb:3:in `<module:Strategies>': uninitialized constant Devise::Strategies::TokenAuthenticatable (NameError)
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/devise_header_token-1.0.0/lib/devise_header_token/header_token_authenticatable.rb:2:in `<module:Devise>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/devise_header_token-1.0.0/lib/devise_header_token/header_token_authenticatable.rb:1:in `<top (required)>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/devise_header_token-1.0.0/lib/devise_header_token.rb:9:in `devise'
from /Users/joeldoyle/dev/revunit/everview-api/app/models/user.rb:19:in `<class:User>'
from /Users/joeldoyle/dev/revunit/everview-api/app/models/user.rb:15:in `<top (required)>'
from /Users/joeldoyle/dev/revunit/everview-api/spec/factories/users.rb:11:in `block in <top (required)>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `instance_eval'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `run'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:7:in `define'
from /Users/joeldoyle/dev/revunit/everview-api/spec/factories/users.rb:1:in `<top (required)>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:19:in `each'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:15:in `each'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/factory_girl_rails-4.4.1/lib/factory_girl_rails/railtie.rb:21:in `block in <class:Railtie>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/activesupport/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/activesupport/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/activesupport/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/application/finisher.rb:64:in `block in <module:Finisher>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/initializable.rb:30:in `run'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/application.rb:288:in `initialize!'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/railtie.rb:194:in `public_send'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-2ef79cdd9122/railties/lib/rails/railtie.rb:194:in `method_missing'
from /Users/joeldoyle/dev/revunit/everview-api/config/environment.rb:5:in `<top (required)>'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/spring-1.1.2/lib/spring/application.rb:92:in `preload'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/spring-1.1.2/lib/spring/application.rb:140:in `serve'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/spring-1.1.2/lib/spring/application.rb:128:in `block in run'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/spring-1.1.2/lib/spring/application.rb:122:in `loop'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/spring-1.1.2/lib/spring/application.rb:122:in `run'
from /Users/joeldoyle/.rvm/gems/ruby-2.0.0-p247/gems/spring-1.1.2/lib/spring/application/boot.rb:18:in `<top (required)>'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/joeldoyle/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
Hi,
What license is this devise_header_token released under?
When I add set the config/devise.rb and create the authentication_token column in my user resource and add :token_athenticatable to the user.rb and then restart my server I get: NameError: uninitialized constant Devise::Models::TokenAuthenticatable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.