LinkedIn API: Access Denied when getting Access Token

旧街凉风 提交于 2019-12-08 08:28:30

问题


I'm trying to request for an access token using the endpoint:

https://www.linkedin.com/oauth/v2/accessToken?grant_type=client_credentials&client_id={clientid}&client_secret={clientsecret}

The response I get is:

{
    "error": "access_denied",
    "error_description": "This application is not allowed to create application tokens"
}

I have set the permissions to r_basicprofile and rw_company_admin.


回答1:


Client Credential Flow (2-legged OAuth): https://docs.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?context=linkedin/consumer/context: Contributors If your application needs to access APIs that are not member specific, use the Client Credential Flow. Your application cannot access these APIs by default. Contact us to have your application granted permission to use this flow.



来源:https://stackoverflow.com/questions/52496675/linkedin-api-access-denied-when-getting-access-token

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!