Client Credential Flow (2-legged OAuth) not working

Tangeni Shikomba 46 Reputation points
2020-07-23T19:23:21.963+00:00

Hello,

I am trying to use the LinkedIn API. I have gone through the process of setting up an APP in the developer portal. I am trying to get an access token using the Client Credential Flow (2-legged OAuth) to be able make API calls, but it doesn't work, and I get this response back '{"error":"access_denied","error_description":"This application is not allowed to create application tokens"}'.

Can you please help me activate this feature.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,048 questions
0 comments No comments
{count} votes

Accepted answer
  1. soumi-MSFT 11,831 Reputation points Microsoft Employee Moderator
    2020-07-24T09:04:28.753+00:00

    @TangeniShikomba-0824, Thank you for reaching out. For the following error, '{"error":"access_denied","error_description":"This application is not allowed to create application tokens"}, you need to contact the LinkedIn Support to get this fixed.

    As mentioned in this article: https://developer.linkedin.com/docs/v2/oauth2-client-credentials-flow

    "For certain endpoints we offer OAuth 2.0 application access via the Client Credentials Flow. Commonly referred to as "OAuth two-legged", this flow allows your application to authorize with LinkedIn's API directly - outside the context of any specific user.
    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.
    "

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.


2 additional answers

Sort by: Most helpful
  1. Tangeni Shikomba 46 Reputation points
    2020-07-27T13:08:22.09+00:00

    Thank you for the follow up @soumi-MSFT, I have sent out a ticket to the LinkedIn Support and I am currently waiting for feedback from them. Maybe just some information for those might be wondering how to get hold of the LinkedIn Support use the following link: https://linkedin.zendesk.com. It took me a while to find this link.

    2 people found this answer helpful.

  2. Robi 1 Reputation point
    2021-09-07T23:58:48.423+00:00

    hello,
    I am trying to access one of the standardized-data APIs (https://learn.microsoft.com/en-us/linkedin/shared/references/v2/standardized-data/skills) and for that, I would need to get an application token from the https://www.linkedin.com/oauth/v2/accessToken endpoint.
    But I am also getting

    404 Unauthotised "This application is not allowed to create application tokens" error

    I am not able to follow the documentation what I need to do to activate this (I did send a zendesk ticket using the above link with no response in weeks)
    Please help @soumi-MSFT

    Thank you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.