My access token request is failing with the following error response in HTTP Response.

{ error: "invalid_client_id" error_description: "client identifier invalid" }

I am trying with the Username-Password flow for OAuth.

I am testing with "Advanced REST Client" in Chrome.

enter image description here

enter image description here

This is my payload


All my credentials are correct and I am stuck.

My connected app settings (Client Key/Secret) are also right without any typos and such.

Can someone help as to what could be wrong ?

  • As the error saying itself I'm confused what's that grant_type in your request. It looks like some code – highfive Sep 19 '15 at 11:05
  • The error message is not from my payload.. It is given by the Rest client after processing my payload. – Varun Sep 19 '15 at 11:06
  • 1
    error message is fine, am asking the value for grant_type in your request. It looks like some generated code where it shouldn't be as I think – highfive Sep 19 '15 at 11:13
  • You are absolutely right !!!..Let me repush with the correct payload – Varun Sep 19 '15 at 11:14
  • grant type error no longer occurs as expected but i am getting this error now..I have updated the post with the latest behaviour. The hardcoded username/password is right and can you let me know as to where should i start looking now ?..thanks – Varun Sep 19 '15 at 11:20

Okay, I see that there are one thing wrong with your request. There should be no space/enter in the client Id. I see that there is an enter in your request in Postman.

I tried the same request after removing the enter and got invalid client credentials instead of invalid client identifier. Possibly the one you have provided here have been changed.


After testing in postman i got a success response.

The only change i have made is given below

clientSecret -> client_secret

And the call should be a POST call.

If you need anything else you can comment bellow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.