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

omniauth-oauth2 1.4 compatibility #32

Open
chussenot opened this issue Aug 4, 2016 · 3 comments
Open

omniauth-oauth2 1.4 compatibility #32

chussenot opened this issue Aug 4, 2016 · 3 comments

Comments

@chussenot
Copy link
Contributor

Hi there,

we have error on the callback with the omniauth-oauth2 gem in version 1.4 so we lock it in our rails application.

$> Gemfile

 52 group :auth do
 53   gem 'devise',                   '~> 4.2'
 54   gem 'devise-i18n'               # Only yaml files
 55   gem 'omniauth',                 '~> 1.3'
 56   gem 'omniauth-facebook',        '~> 4.0'
 57   gem 'linkedin'
 58   gem 'omniauth-linkedin-oauth2', branch: 'master'
 59   gem 'omniauth-oauth',           '1.1'
 60   gem 'omniauth-oauth2',          '=1.2'
 61 end

$> config/initializers/devise.rb

264   config.omniauth :linkedin,
265     Gaston.providers.linkedin.api_key, Gaston.providers.linkedin.secret_key,
266     scope: 'r_emailaddress r_basicprofile'

With omniauth-oauth2 1.4 we have this error in application server logs

E, [2016-08-04T10:50:15.569508 #32664] ERROR -- omniauth: (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"}

Missing something ?

@chussenot
Copy link
Contributor Author

@chussenot
Copy link
Contributor Author

Ok same issue #31
Sorry !

@chussenot
Copy link
Contributor Author

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

1 participant