You need to sign in to do that
Don't have an account?

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.
Anyone?
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.
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
Thanks Carmelo for the suggestion.
I experienced the same issue as well and remove special character from password fixed the issue.
Thank you for posting this.