skorks / omniauth-linkedin

LinkedIn OAuth strategy for OmniAuth 1.0
124 stars 48 forks source link

uninitialized constant OmniAuth::Strategies::LinkedIn::MultiJson error when authenticating with LinkedIn #34

Open nafmarcus opened 8 years ago

nafmarcus commented 8 years ago

When upgrading to the latest version of Rails 4.2.5, we could not authenticated with LinkedIn becuase we started getting the following error: uninitialized constant OmniAuth::Strategies::LinkedIn::MultiJson. The list of gems is attached. We fixed it by forking the repo and making the following change. https://github.com/itcentralstation/omniauth-linkedin/commit/0249f000f5e1e7ffa6ce0ba8629e60f2cfa97126

bundleList.txt

jmay commented 8 years ago

I experienced this. omniauth-linkedin does not specify multi_json as a dependency. So if you don't declare multi_json explicitly in your Gemfile or have it pulled in via some other gem, this error will occur.

Mingus85 commented 7 years ago

I have the same problem in Rails 5. installing multi_json seperately does not help

colinmccann commented 5 years ago

I had the same issue after upgrading to Rails 5.2.2. Only in production, worked fine in dev. Declaring multi_json in the Gemfile before the omniauth and omniauth-linkedin fixed the issue