• Chris Wong 16
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi, I am new to Salesforce, so thanks for any help

I am trying to connect my application to the Salesforce REST API. I have a Ruby app so I am using Restforce (https://github.com/restforce/restforce). I'm attempting to use the Username/Password authentication which I believe is the same as the Session ID Authorization described here https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm

I created a new Connected Appin the Salesforce Setup App Manager. I clicked enable OAuth settings and selected Full Access as the Oauth scope. 

But when attempting the authentication I am receiving an error:

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

I’m using my personal salesforce account’s username, password and security token. I am using the Connected App's Consumer Key as the Client ID and Consumer Secret as the Client Secret

This happens both when using Restforce or when manually calling curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" ...

I'm pretty sure I'm copying/pasting the correct value of Consumer Key into Client ID.

Did I miss a step when setting up my Connected App? Could the error message mean something else?

Thank you for any help or suggestions!
Hi, I am new to Salesforce, so thanks for any help

I am trying to connect my application to the Salesforce REST API. I have a Ruby app so I am using Restforce (https://github.com/restforce/restforce). I'm attempting to use the Username/Password authentication which I believe is the same as the Session ID Authorization described here https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm

I created a new Connected Appin the Salesforce Setup App Manager. I clicked enable OAuth settings and selected Full Access as the Oauth scope. 

But when attempting the authentication I am receiving an error:

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

I’m using my personal salesforce account’s username, password and security token. I am using the Connected App's Consumer Key as the Client ID and Consumer Secret as the Client Secret

This happens both when using Restforce or when manually calling curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" ...

I'm pretty sure I'm copying/pasting the correct value of Consumer Key into Client ID.

Did I miss a step when setting up my Connected App? Could the error message mean something else?

Thank you for any help or suggestions!
Hi, I am new to Salesforce, so thanks for any help

I am trying to connect my application to the Salesforce REST API. I have a Ruby app so I am using Restforce (https://github.com/restforce/restforce). I'm attempting to use the Username/Password authentication which I believe is the same as the Session ID Authorization described here https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm

I created a new Connected Appin the Salesforce Setup App Manager. I clicked enable OAuth settings and selected Full Access as the Oauth scope. 

But when attempting the authentication I am receiving an error:

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

I’m using my personal salesforce account’s username, password and security token. I am using the Connected App's Consumer Key as the Client ID and Consumer Secret as the Client Secret

This happens both when using Restforce or when manually calling curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" ...

I'm pretty sure I'm copying/pasting the correct value of Consumer Key into Client ID.

Did I miss a step when setting up my Connected App? Could the error message mean something else?

Thank you for any help or suggestions!