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

后端 未结 7 660
攒了一身酷
攒了一身酷 2020-12-09 16:18

I am using \'omniauth-linkedin-oauth2\'.

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

Invalid redirect_uri. This value must matc

7条回答
  •  悲&欢浪女
    2020-12-09 16:51

    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/

提交回复
热议问题