LinkedIn OAuth2 Plugin

official
(Christian Sino) #21

Were they some changes recently on the plugin or the Discourse or even on the Linkedin API? Because I can’t seem to login anymore to my forum with LinkedIn. It shows the “Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?”. I use http and everything seemed to work fine until a friend told me that my LinkedIn sign-up doesn’t work anymore. My log:

(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”}

Yes, everything is up-to-date! :slight_smile:

(Christian Sino) #22

Now I got this message:

(linkedin) Authentication failure! access_denied: OmniAuth::Strategies::OAuth2::CallbackError, access_denied | the user denied your request

If noone else is experiencing this how can I resolve it or where to look?

(Rob Larsen) #24

I am getting this error on a new install

(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”}

Has anyone got any ideas?

(Elcap) #25

I followed all the steps, I also authorized the right redirect url.

But I got the same error.

I am redirected to this url :

https://[MY_WEBSITE]/auth/failure?message=invalid_credentials&origin=[MY_WEBSITE]&strategy=linkedin#!

(Ewolfe) #26

I’m having the same version on the hosted version.

After logging in to LinkedIn successfully I receive this message,

Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?

URL is https://SITE.com/auth/failure?message=invalid_credentials&origin=https%3A%2F%SITE.com%2F&strategy=linkedin#!

(Rob Larsen) #27

I managed to fix this connecting to the container and then following the posts here

I realise this is a work around but is ok until the issues are fixed upstream.

4 Likes
(Rob Larsen) #28

Just to let this thread know the latest version of the plugin seems to work ok.

3 Likes
(Bas van Leeuwen) #29

Any word on if this is fully working with 1.9?

(Sam Saffron) #30

It is official so it should work

2 Likes
(Frederik) #31

It seems to work with the latest build: [v2.0.0.beta4 +77]

Just installed it.

Thanks for this plugin :slight_smile:

1 Like