LinkedIn OAuth failed with https_required error me

2019-07-23 11:17发布

Our goal is to get the access token from Linked In API so that we can fetch the current user detail. We are following the API mentioned here: OAuth 2.0 Client Credentials Flow (2-Legged)

The response we are getting from the API is:

{"error":"https_required","error_description":"The client is not authorized"}

Here is the request made via ARC:

enter image description here

Here is the setup at the LinkedIn App Management portal:

enter image description here

The URL from where the LinkedIn login is being called (the Client)

enter image description here

You can verify from the above three screenshots that for all the following cases HTTPS is being used:

  1. LinkedIn Requested URL for the POST request.
  2. Redirect URI in PayLoad.
  3. Redirect URI set in App at LinkedID portal.
  4. Client URL from where LinkedIn login is requested.

Can someone share why the LinkedIn OAuth is still throwing "error": "https_required"?

1条回答
We Are One
2楼-- · 2019-07-23 11:59

I was having this exact problem, where I have an existing app, and all of a sudden today I was having this issue, when it was all configured correctly.

It now started working for me again, therefore I assume there was a temporary bug on LinkedIn's end

查看更多
登录 后发表回答