Openflow Connector for Salesforce Bulk API: Set up Salesforce¶
Note
This connector is subject to the Snowflake Connector Terms.
This topic describes the steps to set up Salesforce for the Openflow Connector for Salesforce Bulk API.
Create certificates¶
You need a private key and public certificate to configure the external client app in Salesforce. You can generate these files using the following commands:
Generate the Private Key. You will be asked for a password to secure the private key.
openssl genpkey -algorithm RSA -out private.key -aes256
Create a self-signed certificate from the Private Key.
openssl req -new -x509 -key private.key -out public.crt -days 365
You can also generate a Certificate Signing Request (csr) to have a certificate signed by your company CA.
Note
You are responsible for safeguarding and rotating the public key and private key files used for key-pair authentication according to the security policies of your organization.
Create an external client app in Salesforce¶
Create an external client app in Salesforce with JWT Bearer Flow.
Log in to Salesforce.
Go to Setup » Apps » App Manager, and then select New External Client App.
Fill in the required fields:
External Client App Name: For example,
Openflow connector for Salesforce Bulk API.Contact Email: For example,
salesforceadmin@mycompany.com.
In the API (Enable OAuth Settings) section, select the Enable OAuth checkbox.
Provide a valid Callback URL (for example,
https://www.google.com/).Provide the desired OAuth Scopes for the application. The following scopes are required for the connector to operate properly:
Manage user data via APIs (
api)Perform requests at any time (
refresh_token,offline_access)
In Flow Enablement, select the Enable JWT Bearer Flow checkbox and upload the
public.crtfile created in the previous step.Click Create to complete the application creation process.
Go to the Settings tab, expand the OAuth Settings section, and click Consumer Key and Secret to retrieve the credentials of your application.
Record the values for the Consumer Key and the Consumer Secret for use when configuring the connector in Snowflake.
Approve the client app¶
The client app will be used by the Openflow Connector for Salesforce Bulk API on behalf of a specific configured user. Follow these steps to approve the app for a specific user:
Go to the Policies tab of the client application.
Click Edit.
Expand the OAuth Policies section and change Permitted Users to Admin approved users are pre-authorized.
Expand the App Policies section and select the profiles or permission sets you want to use based on what you have assigned to the user you will use with the application in the Snowflake connector.
Click Save.
Next steps¶
Perform the Snowflake setup tasks:
Openflow Connector for Salesforce Bulk API: Set up Snowflake