function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Khalid SialKhalid Sial 

invalid_client_id

Hi All,

I have created a developer account and created a demo  of Connected Apps. I enabled the OAuth and now I am trying to get the access token by using client the id and client secret and i am getting the following error
{
    "error": "invalid_client_id",
    "error_description": "client identifier invalid"
}
Best Answer chosen by Khalid Sial
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Khalid,

As we connected and made the end point as below  and added passowrd and security token then it worked with out any issue.

https://login.salesforce.com/services/oauth2/token

If this solution helps, Please mark it as best answer.

Thanks,

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Khalid,

Can you confirm if you are using login.salesforce.com or your custom domain url?

Thanks,
 
Khalid SialKhalid Sial
I tried both but no luck :(
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Khalid,

Did you have any special character in your password?

Thanks
 
Khalid SialKhalid Sial
yes, I have only one special character  '!'
 
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

Is it possible to remove it and try it.

Thanks,
 
Khalid SialKhalid Sial
let me try
Khalid SialKhalid Sial
I changed my password and now my password is containging alphabets and number only but still facing the same problem
Response_Error
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

Can we connect and check this?

Thanks,
 
Khalid SialKhalid Sial
sure we can connect
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Khalid,

Can you confirm if you are joining as I am waiting on the call.

Thanks,
 
Sai PraveenSai Praveen (Salesforce Developers) 
HI Khalid,

I waited for around 10 min on the call and I guess you have some issue in connecting. let me know once you are free so can send the link again.

Thanks,
 
Khalid SialKhalid Sial
Now I am available kindly share with me the link
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Khalid,

As we connected and made the end point as below  and added passowrd and security token then it worked with out any issue.

https://login.salesforce.com/services/oauth2/token

If this solution helps, Please mark it as best answer.

Thanks,
This was selected as the best answer