+ Start a Discussion
Lucas_SLucas_S 

OAuth Token refresh issue - getting invalid_client_id

Hi All,

 

I had a REST API integration working on both my Dev instance and client's Enterprise one until today. Client is complaining that it stopped working for them. I've checked both instances and they both have the same issue: when trying to refresh token I'm getting:

 

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

 

None of the code changed since it was confirmed working and definately the Client ID / Consumer Key did not change.

 

Any idea anyone?

Any thoughts or suggestions will be appreciated.

Lucas_SLucas_S

Anyone?

Carmelo AndronacoCarmelo Andronaco
I came accross this today. 

Turns out, my issue was the "Password" itself. It contained a "#" and was throwing this error, rather than the expected "authentication failure". So if you are getting this issue (and have copy and pasted the client ID over 1000 times and still not working, I'd suggest trying again with a simple password with no special characters, or use $, as it worked for me. Avoid #, or others that are not URL friendly. 
Daniel Garus 10Daniel Garus 10
I came accross the same thing as well.

In my case I had a named credential, Connected App and Auth provider to Salesforce. Authenticated it and deleted it for testing purposes.
Then I recreated it with the same settings, name etc. and got the error.

After revoking the access on my profile the authentication worked.

Deleting the Connected App does not revoke the OAuth Connected App
Jesse WindebankJesse Windebank
I faced the same issue and removing special characters from the password was the resolution for me.

Thanks Carmelo for the suggestion.
Romeo Ngo 22Romeo Ngo 22

I experienced the same issue as well and remove special character from password fixed the issue.

Thank you for posting this.