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

后端 未结 7 646
攒了一身酷
攒了一身酷 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 17:02

    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/
    
    0 讨论(0)
提交回复
热议问题