LinkedIn - Getting Access Token Error

All,

I am facing authentication issues that I see others have also complained about. Following official documentation I was able to get the client id and client secret but when I try to get Access Token I am getting this error:

{ "error": "invalid_request", "error_description": "A required parameter \"client_id\" is missing" }

I am using POSTMAN to get the access token. After getting the Access Token I intend to work with LinkedIn REST APIs with other software that could consume REST. I am not sure why I am getting this error, I wonder is it not possible to get the token from POSTMAN and have to use Python script?

Also, redirect_uri in step 2 is not a functional callback uri, it's an imaginary URL. Do I need a valid callback URL?

1 answer

  • answered 2018-04-17 04:12 Harry

    Since you are getting this error

    { 
      "error": "invalid_request", 
      "error_description": "A required parameter \"client_id\" is missing" 
    }
    

    This is giving a hint that you might need to change the Client Authentication drop-down value to Send client credential in body instead of Send as Basic auth header

    This is because when client_id and client_secret are sent in the header, they are combined and converted to base64

    Authorization: Basic base64($client_id + ':' $client_secret)
    

    So, no separate client_id is ever sent. But if you choose to send the credentials in body then they are sent separately.

    For more info, you can refer the offical RFC here https://tools.ietf.org/html/rfc6749#section-2.3.1

    enter image description here