4 Answers

3
votes

Hello I had a similar problem and I fixed it by doing this ;

You have to ensure that everything in your APP page ( https://www.linkedin.com/developer/apps ) matches the parameters in your authorization URL . SO for example in your case , https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=test&redirect_uri=http://test.custom.com/abc/linkedin&state=DCEeFWf45A53sdfKef424asgTyhgTR5 ;

You would have to ensure that your client_id in the auth URL matches the Client-Id on your APP page and also ensure that the redirect_uri you specified in your auth URL has been authorized on your app page as shown below . If you are passing in scopes as well, also ensure that they match perfectly . As you can see in the image below , my redirect_uri has been authorized from my app page . enter image description here

3
votes

you need to add Sign In with LinkedIn permission in product tabs from the app settings page go to the product tab and add Share on linkedin and Signin with linkedin to get the following permissions r_emailaddress, r_liteprofile, w_member_social

1
votes

Recreate a application after 12/15/2018 solved the problem for me. (Any developer application created through the LinkedIn Developer Portal after December 15, 2018 automatically has access to the v2 API.) https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context

0
votes

I ran into same issue.

Changing value of redirect_uri in linkedin app from http to https helped solved the issue. See picture below:

Linkedin App OAuth 2.0 Settings


In your case, url should have been:

https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=test&redirect_uri=https://test.custom.com/abc/linkedin&state=DCEeFWf45A53sdfKef424asgTyhgTR5 ;