Create Local External Client App
You can create a local external client app via App Manager in Salesforce to enable OAuth 2.0 client credentials flow. This allows the Fivetran connector to authenticate as an integration user without interactive login. The created external client app should in the same org as to which we want to connect to.
Prerequisites
You have permissions to create or edit External Client Apps.
Setup instructions
Create external client app
Go to Setup.
In Quick Find, type App Manager.
Click App Manager.
In App Manager, click New External Client App.
Enter the following details:
- Label: Enter a name for the app, for example, 'Fivetran Integration'.
- API Name: Auto-filled from the label, can be edited.
- Contact Email: Enter your contact email address.
Find the Distribution State field.
Set Distribution State = Local. This makes the app a local External Client App, only usable in this org and not packageable.
In the API (Enable OAuth Settings) section, select the Enable OAuth checkbox.
Expand the OAuth Settings section.
In the Callback URL field, enter
https://fivetran.com/integrations/salesforce/oauth2/return.In the OAuth Scopes menu, select the 'Manage user data via APIs (api)' scope.
In the Field Enablement section, select the Enable Client Credentials Flow checkbox.
When you enable OAuth 2.0 Client Credentials on an external client app, Salesforce requires you to select an integration user for the app. Every access token issued via the
client_credentialsfor that app acts as this integration user. Permissions are determined by both the scopes granted to the app and the profile, and the permission sets of the selected integration user.Click Create. Your local external client app now appears in the external client app manager.
Modify app policy
- Open the app you created.
- Go to Policies and click Edit.
- In the OAuth Policies section, under OAuth Flows and External Client App Enhancements, make sure Enable Client Credentials Flow is checked.
- In the Security section, deselect all the checkboxes.
- Enter the integration user for the app.
- In the App Authorization section, select Relax IP restrictions in the IP Relaxation drop down menu if needed.
Find client credentials
Open the app you created.
Click the Settings tab.
Expand the OAuth Settings section.
In the App Settings field, click Consumer Key and Secret.
Make a note of the Consumer Key and Consumer Secret. We use these credentials as the Client ID and Client secret in Fivetran. You will need these to configure the Fivetran connection.
You must also provide your My Domain URL when configuring the connector with the client credentials flow. For example,
https://MyDomainName.my.salesforce.com.Go back to the Fivetran Salesforce connection setup form.