linkedin : Invalid redirect_uri. This value must match a URL registered with the API Key

bummer, something went wrong. the redirect_uri does not match the registered value
linkedin redirect url
linkedin api status
login with linkedin
create app in linkedin
linkedin authentication code
scope &quot rw_migration&quot is not authorized for your application
linkedin register application

I am using 'omniauth-linkedin-oauth2'.

When I am login with linkedin then I am getting this error

Invalid redirect_uri. This value must match a URL registered with the API Key.

This is my settings:


Went back to LinkedIn developer site (https://www.linkedin.com/secure/developer ) to check my setting again. Everything matches API Key, Secret Key and OAuth 2.0 Redirect URLs.

Searched web looking for some clues. Couldn’t find a one. Crazy issue:

Then I saw that in the URL Owin was appending some extra string to the redirect_uri "signin-linkedin". When I decoded the URL I saw this http://localhost:54307/signin-linkedin . I took this URL and placed it in the OAuth 2.0 Redirect URLs field in the LinkedIn developer site.

This link is helpful for me https://naveengopisetty.wordpress.com/2014/09/15/linkedin-oauth-2-0-issue-invalid-redirect_uri-this-value-must-match-a-url-registered-with-the-api-key/

Login with LinkedIn throws an error "invalid redirect_uri. This value , invalid redirect_uri. This value must match a URL registered with the API Key. Defect/Enhancement Number  The issue is caused if the Authorized Redirect Url in the LinkedIn application is not specified in the correct format. Cause 2 The issue is caused if the Application Id or the Application Secret entered in Sitefinity are not correct and do not match the values in the Application Id and the Application Secret of the LinkedIn application.


please check your redirect_url. for my case I see like this.

https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=77k93y0w31zaey&redirect_uri=http%3A%2F%2Flocalhost%3A1729%2Fsignin-linkedin&scope=r_basicprofile%2Cr_emailaddress&state=nhAC-nR-CgEwO3XS2ezANhuPBMz-IUmLPJYgGHlZvZ8B1pCfsGBU0PR0dZ5XxE4zbyeI0RLcKByqPLKkgQdqMm4s6DjFYqMCEehYA2iWT9MfioEHjPXGCt2USxUTF0wKBpflCUjG5URVlJa3qI7U3ydFOErZ4Hhnr9SVmKdf1bithYfbOqBx345o8LQLexbddQ687vP6y0szrIyCM6FHip1tCpOY3Hgg5FJQEFH1mCJ_yLunD5vDUN4VVfkQbcjk

for this I add the url for OAuth 2.0 Authorized Redirect URLs:

http://localhost:1729/signin-linkedin

where http://localhost:1729 =base url and signin-linkedin = the string which add after base url

"invalid redirect_uri. This value must match a URL registered with , however, I keep getting this back from Linkedin: invalid redirect_uri. This value must match a URL registered with the API Key. I'm sure I did put  Invalid redirect_uri. This value must match a URL registered with the API Key. Closed (fixed) Project: LinkedIn Company API Suite. Drupal is a registered


You can just look in url that you are getting that error message on.

eg. if you are using python's social auth the url would look like this:

https://www.linkedin.com/uas/oauth2/authorization?scope=r_basicprofile+r_emailaddress&state=XXXXXX&redirect_uri=http://example.com.au/sa/complete/linkedin-oauth2/&response_type=code&client_id=YYYYYYY

so you would use this part of the above url for the redirect url

http://example.com/sa/complete/linkedin-oauth2/

invalid redirect_uri. This value must match a URL , invalid redirect_uri. This value must match a URL registered with the API Key. Added the package using - meteor add pauli:accounts-linkedin. invalid redirect_uri. This value must match a URL registered with the API Key. #16


Worth mentioning when one uses libraries to handle oauth: some libraries fail to care about the protocol that is used (or at least require further parametrization). Eg, I gave Linkedin https://example/callback as oauth2 url, but the library sent the request with http://example/callback as parameter.

invalid redirect_uri. This value must match a URL registered with the , I am integrating linkedin login, and i am getting this error. invalid redirect_uri. This value must match a URL registered with the API Key. #437. linkedin : Invalid redirect_uri. This value must match a URL registered with the API Key However, adding that last 'sigin-linkedin' portion didn't alleviate the issue.


I had this when trying to authorise from a zurb Reveal modal popup. In my case, the issue was the URL for the page that was being displayed in the popup was not in my OAuth2 Redirect URLs list on the LinkedIn developer site.

That was easy to miss because the page URL from the page in the modal is not the URL that was currently showing in the browser's address bar. Once I added the URL for the page being shown in the pop up it worked.

invalid redirect_uri. This value must match a URL registered , invalid redirect_uri. This value must match a URL registered with the API Key. Closed (works as designed). Project: Social Auth LinkedIn. Invalid redirect_uri. This value must match a URL registered with the API Key. It seems that from now on the redirect_uri has to be sent also in the request, as specified here:


Invalid redirect_uri. This value must match a URL registered , Invalid redirect_uri. This value must match a URL registered with the API Key. Closed (fixed). Project: LinkedIn Company API Suite. Version:. When it sends the request to LinkedIn, you can look at the URL in the browser and see what "redirect_uri" is passed in. It must match the redirect_uri that is registered for your application. If you have difficulty with that, please update the question with the link for the authentication page at LinkedIn.


LinkedIn OAuth 2.0 issue – Invalid redirect_uri. This value must , This value must match a URL registered with the API Key. I was working on a feature where the application should allow users to use their  You did not register your OAuth 2.0 callback URL in your application's configuration. The value of your redirect_uri argument in your OAuth 2.0 authorization request does not match any of the registered callback URL values in your application's configuration.


invalid redirect_uri. This value must match a URL registered, invalid redirect_uri. This value must match a URL registered in LinkedIn How to solve this. invalid redirect_uri. This value must match a URL registered with the API Key. #437