LinkedIn OAuth failed with https_required error message

。_饼干妹妹 提交于 2019-12-24 14:02:31

问题


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:

Here is the setup at the LinkedIn App Management portal:

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

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:


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



来源:https://stackoverflow.com/questions/56660121/linkedin-oauth-failed-with-https-required-error-message

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