Print this page

Connected App using OAuth needs Client ID and Client Secret to Authenticate

Knowledge Article Number 000205876
Description When you develop an external application that needs to authenticate with Salesforce, you need to define it as a new connected app within the Salesforce organization that informs Salesforce of this new authentication entry point. Once you define a connected app, you use the consumer key and consumer secret to authenticate your application.

For an existing Connected App:

Navigate to Name > Setup > Create > Apps and click on the app you need. The page you load will contain this information under API (Enable OAuth Settings).

To create a new connected app Use the following steps :

  1. From Setup, click Create | Apps and click New to start defining a connected app.
  2. Enter the name of your application.
  3. Enter the contact email information, as well as any other information appropriate for your application.
  4. Select Enable OAuth Settings.
  5. Enter a Callback URL. Depending on which OAuth flow you use, this is typically the URL that a user’s browser is redirected to after successful authentication. As this URL is used for some OAuth flows to pass an access token, the URL must use secure HTTP (HTTPS) or a custom URI scheme.
  6. Add all supported OAuth scopes to Selected OAuth Scopes. These scopes refer to permissions given by the user running the connected app.
  7. Enter a URL for Info URL. This is where the user can go for more information about your application.
  8. Click SaveThe Consumer Key is created and displayed, and the Consumer Secret is created (click the link to reveal it).
Once you define a connected app, you use the consumer key and consumer secret to authenticate your application.

Creating a Connected App
How to get your Security Token:
You are given a security token the first time you log into Salesforce. If you do not have it, here is how you can reset it:
1. Click on your username in the top right corner
2. Choose "Setup" from the menu
3. Click "My Personal Information"
4. Click "Reset your security token" and follow the steps provide

promote demote