Overview
In this article, we will discuss how to configure an OAuth Connected App in Salesforce. This step is a prerequisite to configuring a Virtual Collection using Salesforce or when connecting Salesforce to Totango using the CRM Connector.
Creating a new Connected App in Salesforce:
- Open SalesForce, go into the Admin page
- In Lightning View:
- Open App Manager under Platform Tools --> Apps
- Click 'New Connected App' from the header
- Open App Manager under Platform Tools --> Apps
- In Classic View
- Open Apps under the Build --> Create menu
- Scroll the bottom of the page, under the "Connected Apps" section click New to start defining a new connected app.
- Open Apps under the Build --> Create menu
- Choose a name for the application. We recommend something like Totango oAuth application.
- Enter the contact email information, for the resource within your organization who will be responsible for any maintenance of this application. This information is specific to your organization.
- Select "Enable OAuth Settings."
- Input the following Callback URLs:
https://app.totango.com/auth/das/callback
https://app.totango.com/auth/connector/callback - From the Available oAuth Scopes select:
"Full access (full)"
"Perform requests on your behalf at any time." - Make sure "Secret for Web Server Flow" is check marked
- Make sure "Configure ID Token" is check marked
- Input "120" in the Token Valid for box.
- Click Save.
Important Note about OAuth Scopes
- When this Application is authenticated with Totango it requires an SFDC user to perform the handshake. These settings represent the permissions that the application has to perform on behalf of said user. If you wish to control which objects/permissions this application will have: you can do that by altering the profile that the user, that will authenticate this app, belongs to.
Once you have completed these instructions you will see the page above: Note the Consumer Key and Consumer Secret you will need those for configuration of Totango. You can always get back to this screen and get those by navigating to:
- In Salesforce Classic view, go to Setup | App Setup | Create | Apps | scroll down to Connected Apps | click the Connected App Name that you chose in Step 4 (do not click Edit or Manage).
- In Salesforce Lightning view, go to Setup | Tools | Apps | App Manager | choose "View" from the drop-down menu to the right (do not click Edit or Manage).
Note, it might take up to 10 minutes before your new connected app takes effect on the Salesforce server and can be tested in Totango.