Linkedin Oauth2 客户端凭证授权类型

Linkedin Oauth2 Client Credentials grant type

在这里提问是因为 linkedin 帮助论坛指向 post Whosebug 上与 API 相关的事情。

我正在我们的组织网站上开发一项功能,以显示 linkedin 中排名前 5 的公司页面提要设置。我已经在 developer.linkedin 中设置了所需的访问权限,整个流程在 developer.linkedin REST 控制台中运行以获取提要。

当我尝试从我的机​​器获取具有有效客户端 ID 和创建的密码的身份验证令牌时,我目前收到此错误。

https://www.linkedin.com/oauth/v2/accessToken?grant_type=client_credentials&client_id=OMITTED&client_secret=OMITTED

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

文档还提到默认情况下此流程不可用,用户需要联系 linkedin。

https://developer.linkedin.com/docs/v2/oauth2-client-credentials-flow

"By default, your application will not have the ability to use LinkedIn's client credentials flow. Contact us to have your application granted permission to use this flow."

为我的组织请求访问此流程的后续步骤是什么?

如此处所述:

By default, your application will not have the ability to use LinkedIn's client credentials flow. Contact us to have your application granted permission to use this flow.

下一步是直接联系他们或 Apply to become a Partner 如果被接受,您将被授予访问用户身份验证流程范围之外的其他数据的权限(这基本上意味着您将能够直接从您的应用程序进行调用以访问某些信息)

我觉得API-大学很好的解释了答案,既然为了拿到access_token而创建一个应用程序,就解决了沟通问题。

Link对解释:https://api-university.com/blog/api-usage/how-to-use-the-linkedin-api-and-oauth/