decioferreira / omniauth-linkedin-oauth2

A LinkedIn OAuth2 strategy for OmniAuth.
MIT License
117 stars 147 forks source link

Incompatibility of gems #37

Open jchatel opened 7 years ago

jchatel commented 7 years ago

FYI:

gem 'omniauth-oauth2', '~>1.4.0' 
+
gem 'omniauth-linkedin-oauth2', '~>0.1.5'

Causes omni auth to fail. Linkedin reply with this:

Started GET "/auth/linkedin?logon=linkedin" for 127.0.0.1 at 2017-05-24 18:28:51 +0200 (linkedin) Callback phase initiated. (linkedin) Authentication failure! invalid_credentials: OAuth2::Error, invalid_request: missing required parameters, includes an invalid parameter value, parameter more than once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired {"error_description":"missing required parameters, includes an invalid parameter value, parameter more than once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired","error":"invalid_request"}

Using gem 'omniauth-oauth2', '~>1.3.1' works...

vikramtrs commented 6 years ago
gem 'omniauth-oauth2', '~>1.3.1'
+
gem 'omniauth-linkedin-oauth2', '~>0.1.5'

still doesn't work for me...