Linkedin Oauth2 Client Credentials grant type

爱⌒轻易说出口 提交于 2020-08-22 06:18:40

问题


Asking the question here as the linkedin help forum directed to post things related to API on stackoverflow.

I am developing a feature on our org website to show the top 5 company page feeds setup in linkedin. Ive already setup the required access in developer.linkedin and the whole flow works in the developer.linkedin REST console to fetch the feed.

I am currently recieving this error when i try from my machine to fetch the auth token with a valid client id and secret created.

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" }

The documentation also mentions that this flow isn't available by default and the users will need to contact 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."

What would be the next steps in requesting access to this flow for my org?.


回答1:


As outlined here:

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.

The next step would be to contact them directly or Apply to become a Partner and if accepted you'll be granted access to additional data outside of the scope of the user authentication flow (which basically means you'll be able to make calls directly from your application to access certain information)



来源:https://stackoverflow.com/questions/49729991/linkedin-oauth2-client-credentials-grant-type

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