How to get Consumer Key and Consumer Secret for automating Salesforce?

To configure a Salesforce OAuth2 connection, register your Auth0 tenant on the Admin panel. Follow the steps mentioned below to generate Consumer Key and Consumer Secret.

Step 1. Register a New App on Salesforce

1. Log in to Salesforce URL of your domain. (example: https://login.salesforce.com)

2. Click on Settings > Setup at the top right.

3. On the navigation bar at the left, go to Platform Tools > Apps. Under App Manager, click New Connected App.

 

Step 2. Fill the New Connected App form

1. In the Basic Information section, enter the required basic information (Connected App NameAPI Name and Contact Email).

2. Select Enable OAuth Settings under the API (Enable OAuth Settings) section.

3. Enter your callback URL (example: https://MyCompany.Myapp) Refer to https://help.salesforce.com/s/articleView?id=sf.remoteaccess_terminology.htm&type=5 for more details.

4. Add Access your basic information to the Selected OAuth Scopes.

5. Click Save.

Step 3. Get your Consumer Key and Consumer Secret

Once the app is registered, the page displays your Consumer Key and Consumer Secret.