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

uninitialized constant DeviseTokenAuth::OmniauthCallbacksController::BCrypt #393

Closed
alain-andre opened this issue Oct 3, 2015 · 2 comments

Comments

@alain-andre
Copy link

Hi, I'm having some troubles after authentication worked with a linkedin user already saved in my DB, I got this error message. I couldn't find a solution, can someone help ?

Redirected to http://0.0.0.0:3000/auth/linkedin/callback
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)


Started GET "/auth/linkedin/callback" for 127.0.0.1 at 2015-10-03 18:42:08 +0200
Processing by DeviseTokenAuth::OmniauthCallbacksController#omniauth_success as HTML
  Parameters: {"provider"=>"linkedin"}
  User Load (0.2ms)  SELECT  "users".* FROM "users"  WHERE "users"."uid" = '8Xh1GICijH' AND "users"."provider" = 'linkedin'  ORDER BY "users"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 2ms

NameError (uninitialized constant DeviseTokenAuth::OmniauthCallbacksController::BCrypt):
  devise_token_auth (0.1.30) app/controllers/devise_token_auth/omniauth_callbacks_controller.rb:49:in `omniauth_success'
@alain-andre
Copy link
Author

After deleting the user, the oauth works fine. Only difference in DB is the infos for the user. Before the delete, the end of the record was :

"expiry"=>1445084423, "last_token"=>"$2a$10$cbKEA98PWXiuF22IQDzAl.vaqHGdAHsif4j9ApgidMG.xp/AfmkWy", "updated_at"=>"2015-10-03 14:20:23 +0200"}, "H_D1PkwMd6xBV1djLtCpyQ"=>{"token"=>"$2a$10$bpkZaEQ9k4SD5YTdx3Z6heB5KgAv8z.8jRh1kaOYMH7j8Fq9lSjku", "expiry"=>1445089007, "last_token"=>"$2a$10$JbEv0SIFN/yVLlFyDoBG8.e6q9SkQJV6AFZatzQs1MiG.XFRcrurK", "updated_at"=>"2015-10-03 15:36:47 +0200"}, "5X-7WK_sc3AzDwUBU7pq0A"=>{"token"=>"$2a$10$zqf7MkdLN/Mo5S.89x06n.CGju2crCVd6EQVkilOIqsB0KvHrhtlC", "expiry"=>1445089169, "last_token"=>"$2a$10$Ncu9ANpCRxor2G9ElgY0YuwfRJbOACflKaz1K4M2oNuskXyrrVvtu", "updated_at"=>"2015-10-03 15:39:29 +0200"}, "cOb3SAZSHuJxaBfSf1xRaQ"=>{"token"=>"$2a$10$F7A7LgDH/wtXPgjbs.0P7OwpntSBt6.KedO3HL.dnQtt4PGtDrBhi", "expiry"=>1445089238, "last_token"=>"$2a$10$mSzwgrc.qVe9DUETNJWjMe0A6BUNm1dG0ABaA1Q3Zw4wG46wZInoq", "updated_at"=>"2015-10-03 15:40:38 +0200"}, "ngoQLEjLHeHx7MNErgDRwQ"=>{"token"=>"$2a$10$yWuKrooVENvpxuLI0HVXTuG9Fqv.QZZ3e8l/zdY9MCjYtBrhYqrj2", "expiry"=>1445089247, "last_token"=>"$2a$10$i8hS3YM4co44qYyNmktdrevpH0.NRZNRqWIZYWOWCcguxA29q82m6", "updated_at"=>"2015-10-03 15:40:47 +0200"}, "EODrNuSoJvbYXtR4ERzGQA"=>{"token"=>"$2a$10$ABpurRmhVHoujPXehT5WYeD/2EoojLohg1FMIayI8EkuZIWs4xBwu", "expiry"=>1445089353, "last_token"=>"$2a$10$exxlWd1HLiLHLKrqW6noneUDchxgMG11Zv/rR1IF350c6AYyOg5xu", "updated_at"=>"2015-10-03 15:42:33 +0200"}}, created_at: "2015-10-03 12:19:46", updated_at: "2015-10-03 13:42:33">

And now it's :

"expiry"=>1445101473}}, created_at: "2015-10-03 17:03:21", updated_at: "2015-10-03 17:04:33">

@booleanbetrayal
Copy link
Collaborator

I just pushed v0.1.36 which should fix this issue. Going to close, but can re-open if necessary.

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

2 participants