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:
- LinkedIn Requested URL for the POST request.
- Redirect URI in PayLoad.
- Redirect URI set in App at LinkedID portal.
- Client URL from where LinkedIn login is requested.
Can someone share why the LinkedIn OAuth is still throwing "error": "https_required"?
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