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