omniauth-linkedin
omniauth-linkedin copied to clipboard
uninitialized constant OmniAuth::Strategies::LinkedIn::MultiJson error when authenticating with LinkedIn
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
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.
I have the same problem in Rails 5. installing multi_json seperately does not help
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