LinkedIn V2 api: Not enough permissions to access /me GET

前端 未结 4 808
半阙折子戏
半阙折子戏 2020-12-14 17:05

I have been trying to use the linkedin V2 api, but constantly getting error. I created an developer application. Set up redirect url as \"https://www.getpostman.com/oauth2/

相关标签:
4条回答
  • 2020-12-14 17:36

    This is a old question, but the solution is to use the scope r_liteProfile instead of r_basicprofile during the first step of authorization.

    https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=*****&redirect_uri=http://yourauthorizationserver&state=RandomString&scope=r_liteprofile
    

    Then, use the value of the code parameter passed back from LinkedIn to http://yourauthorizationserver in the second step of authorization:

    curl -X POST \
    'https://www.linkedin.com/oauth/v2/accessToken?code=codeobtainedwiththefirstcall&grant_type=authorization_code&client_secret=*****&client_id=***&redirect_uri=yourredirecturi' \
    

    Solution found here: Any queries to the api.linkedin.com/v2/ return "Not enough permissions to access ..."

    0 讨论(0)
  • 2020-12-14 17:42

    The LinkedIn API has been largely closed off and is only available to approved LinkedIn developers. You can request authorisation here: https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program

    0 讨论(0)
  • 2020-12-14 17:52

    If you are using https://oauth.io/ you have to add scopes in the Keys and Permission Scope configuration page:

    0 讨论(0)
  • 2020-12-14 18:02

    have you checked and allowed access to "r_basicprofile" permissions? go to your app and check your Default Application Permissions for people/~/me endpoint.

    0 讨论(0)
提交回复
热议问题