LinkedIn OAuth returns an incomprehensible error

In response to an oauth request, LinkedIn redirects the user back to my server with the following parameters:

GET /auth/linkedin/callback?error=server_error&error_description=f228ff35d9f7f99ee891ff1e9b056a7a2e4b8429b84de8d7&state=the+authorization+server+encountered+an+unexpected+condition 

In addition, according to the LinkedIn API , error_description is a “URL-encoded text description that summarizes the error.” This is not true..

Here's the original request:

 https://www.linkedin.com/uas/oauth2/authorization?client_id=************&redirect_uri=https%3A%2F%2Fwww.mydomain.com%2Fauth%2Flinkedin%2Fcallback&response_type=code&scope=r_basicprofile+r_emailaddress&state=cc167e16fcc8039277cae38dc02d08bf526c955ceb403513 

How can I find out the actual cause of the failure?

My stack:

  • Rails 4.2.3
  • omniauth 1.2.2
  • omniauth-linkedin-oauth2 0.1.5
+8
ruby-on-rails oauth omniauth linkedin
source share
2 answers

We had a similar problem, and this was caused by the end space in the username field in the LI OAuth form.

I'm not sure why this did not happen on other sites with access to LI Oauth, but someone from LI was able to check it out for us. This problem needs to be solved very soon (or so we were promised)

+2
source share

In many cases, this problem can be solved by creating a new authentication key for your LinkedIn application.

0
source share

All Articles