StackGuides StackGuides
  • Lastest
  • Hot
  • Week
  • Month
  • Bounties
  • Questions
    Newest Active Bounties Unanswered Frequent Votes

LinkedIn API Attempting to Authenticate via OAUTH2 (PHP) results in ambiguous error

1
votes

Attempting to integrate Single Sign On into the project I am working on. URL for Authentication is:

https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=#####&scope=r_basicprofile%2C+r_contactinfo%2C+r_emailaddress&state=527ac1ed0f8081.42856052&redirect_uri=http%3A%2F%2F###.####.co%2Fsignin%2Flinkedin

Redirects to: http://www.linkedin.com/nhome/?report%2Efailure=adZIVBnWTib4up_BiP_fhajxJtMf-QxCuI5n3xXRttZscKxS6FJjbN4qYCKWmvPauF8bvrjY0gMo-bRRTAHLnrfYYkKD-qaxjFjLbhAeRkM_cnR4Tzy5bDtRt8K5l92UN9bG

displaying the following message: "There was an unexpected problem that prevented us from completing your request."

What am I missing?

1
phpoauth-2.0linkedin
PseudoNinja PseudoNinja

1 Answers

4
votes

You need a space between the scopes.

https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=#####&scope=r_basicprofile%20r_contactinfo%20r_emailaddress&state=527ac1ed0f8081.42856052&redirect_uri=http%3A%2F%2F###.####.co%2Fsignin%2Flinkedin

-1 for LinkedIn's API quality.

Josh Unger Josh Unger

Related

2 IOS - Linkedin integration for oauth2.0 with google oauth library -- Got 404 error(page not found)

1 Linkedin php api not setting access token in codeigniter

12 Linkedin API access token generation error

8 LinkedIn OAuth 2.0 Redirect URL

3 Linkedin OAuth2 authorization code error

2 LinkedIn Login Screen Timeout on Mobile Browser

1 LinkedIn: Invalid redirect URI error

2 linkedin oauth2.0 authorization invalid client id error

stackguides.com 2021, licensed under cc by-sa 3.0 with attribution required.

Privacy Policy | Cookies Policy | Contact

Page loaded in 0.012883 seconds

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more