BHAGYASHRI GAIKWAD
BHAGYASHRI GAIKWAD

Reputation: 11

LinkedIn: Invalid redirect URI error

I have created a sample call for LinkedIn authorization as follows:

https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=xxxxxxxx&client_secret=xxxxxxxx&redirect_uri=http://ws-100945:9080/ArtisWeb/index.html&state=9867998869&scope=r_basicprofile

but it is throwing an "Invalid redirect URI" error, I have double-checked the redirect_uri, it is correct one. Can anyone provide guidance?

Upvotes: 1

Views: 4302

Answers (1)

Hans Z.
Hans Z.

Reputation: 54088

There are 3 things to check:

  1. the redirect_uri value should be url-encoded
  2. double-check the URL also wrt. "http" vs."https" and port number
  3. make sure you use the right client_id

Upvotes: 4

Related Questions