Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load 'omniauth' #118

Closed
ricardodovalle opened this issue Jan 20, 2015 · 24 comments
Closed

Could not load 'omniauth' #118

ricardodovalle opened this issue Jan 20, 2015 · 24 comments

Comments

@ricardodovalle
Copy link

I am using the basic gem installation, but I am getting this error in rake db:migrate

Could not load 'omniauth'. Please ensure you have the omniauth gem >= 1.0.0 installed and listed in your Gemfile. rake aborted!`

I am not using omniauth.

Versions:
gem 'rails', 4.2.0'
gem 'devise_token_auth', '~> 0.1.30'

Thanks

@AntonFilipko
Copy link

Also have this issue, even with applying this changes https://github.com/lynndylanhurley/devise_token_auth#example-disable-oauth-authentication

@lorenjohnson
Copy link

Same issue, recommend config doesn't fix this but adding omniauth to my Gemfile does make things go again. Looking at the code I don't see a way to override this currently due to the devise call in DeviseTokenAuth::Concerns::User including omniauth...

Surely related to #60

FYI -- It appears that this will work as of v0.1.31 (in beta and requires Rails 4.2) but not in v0.1.30 (I'm on Rails 4.1)

@AntonFilipko
Copy link

yep, also finally I've decied to stay with omniauth in Gemfile

@lynndylanhurley
Copy link
Owner

Thanks @ricardodovalle - I'll look into this ASAP.

@ricardodovalle
Copy link
Author

Thanks to you @lynndylanhurley, It is a great gem! 👍

@lynndylanhurley
Copy link
Owner

🤘

@lepek
Copy link

lepek commented Mar 12, 2015

Same issue here, I don't want to add the omniauth dependency to my app....

@robypez
Copy link

robypez commented Mar 18, 2015

@lynndylanhurley

Same for me.

I load

include DeviseTokenAuth::Concerns::User 

after

devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :confirmable, :validatable

and I add

namespace :api do
    namespace :v1 do
      mount_devise_token_auth_for 'User', at: 'auth', skip: [:omniauth_callbacks]
      resources :contents, only: [:index, :show] do
        get :hottest, on: :collection
      end
    end
  end

But on rake routes

oadError: cannot load such file -- omniauth

@booleanbetrayal
Copy link
Collaborator

This should no longer be happening as of 0.0.32. Can re-open as needed.

@ryankc33
Copy link

ryankc33 commented Oct 8, 2015

@booleanbetrayal Using 0.1.34, still getting this error

@aud-tree
Copy link

Still happening on 0.1.36. If this isn't going to be fixed, can omniauth at least be added as an explicit dependency?

@lynndylanhurley
Copy link
Owner

Thx, I'll take a look ASAP.

@alienspaces
Copy link

@lynndylanhurley just wondering if there is any movement on this? Thanks for all your hard work!

@montdidier
Copy link

montdidier commented Nov 8, 2016

Still happening in devise_token_auth 0.1.39

@hakunin
Copy link

hakunin commented Nov 14, 2016

Just installed it, same issue. Added omniauth, but not sure I need it?

@johnsaltarelli
Copy link

johnsaltarelli commented Jan 28, 2017

Same issue here. using 0.1.40. @booleanbetrayal shouldn't this issue be reopened since it is happening in the latest release?

@calebearruda
Copy link

Still happening in devise_token_auth 0.1.42, shouldn't this issue be reopened since it is happening in the latest release?

@tomoyuki28jp
Copy link

Same issue here :(

@JarLowrey
Copy link

Just installed and it occurred after running rails g devise_token_auth:install User auth

@zachfeldman
Copy link
Contributor

@JarLowrey what if you try it from the master branch?

@JarLowrey
Copy link

I just added the gem 'omniauth' to my gemfile and it started working.

@oregontrail256
Copy link

Same here, I had to add gem 'omniauth for this to work.

@zachfeldman
Copy link
Contributor

Please don't comment here just to say, "same here", this issue is closed - open a new one if you're still having an issue. Thanks

@josephecombs
Copy link

josephecombs commented Jul 20, 2019

I had a similar error, but with rails:routes. I got it to go away by removing the :omniauthable decoration from my User Class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests