Newer Version Available
Defining Connected Apps
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.
Use the following steps to create a new connected app.
-
Use Salesforce to create a new connected app.
- In Lightning Experience, use the App Manager to create connected apps. From Setup, enter App in the Quick Find box, then select App Manager. Click New Connected App.
- In Salesforce Classic, from Setup, enter Apps in the Quick Find box, then select Apps (under ). Under Connected Apps, click New.
- Enter the name of your application.
- Enter the contact email information, as well as any other information appropriate for your application.
- Select Enable OAuth Settings.
-
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. Separate multiple callback URLs with
line breaks.
The callback URL field has a limit of 2000 characters, cumulatively. If you enter several URLs and they exceed this limit, configure another connected app to manage more callback URLs.
- Add all supported OAuth scopes to Selected OAuth Scopes. These scopes refer to permissions given by the user running the connected app.
- Enter a URL for Info URL. This is where the user can go for more information about your application.
- Click Save. The 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. See Creating a Connected App in the Salesforce online help for specific steps to create a connected app for the type of authentication you need.