Integrating Salesforce with Neomir DQ enables secure and efficient access to your Salesforce data using modern OAuth-based authentication. This guide walks you through the necessary configuration steps in your Salesforce instance, such as setting up CORS, creating a connected app, and defining policies. Once completed, your Salesforce environment will be ready for seamless integration with Neomir DQ via the client credentials flow — allowing automated, secure, and scalable data access without requiring user interaction.
The integration of Neomir DQ with your Salesforce system follows our core principle, that Neomir’s infrastructure never sees, processes or saves your source system’s raw data. The following diagram shows how the integration works once it is setup:

<aside> 💡
To follow this guide, you must be signed in to your Salesforce instance with a user that has the following permissions:
You can check whether your user has this authorization by looking at the “General User Permissions” & “Administrative Permissions” of the profile that is assigned to your user.
</aside>
Search Setup for “CORS” and open the shown result

Add the following allowed origins:
https://*.neomir.app
https://*.neomir.dev
<https://neomir.app>
<https://neomir.dev>
Enable CORS for OAuth Endpoints


Your CORS settings should now look something like this:

In the setup navigation pane, open “Platform Tools —> Apps —> App Manager”

At the top left corner, click “New Connected App” and continue

Fill “Basic Information”

Define API OAuth Settings as follows:
Enable OAuth Settings: ✅
Callback URL: https://login.salesforce.com/services/oauth2/callback
Selected OAuth Scopes:
“Access the Salesforce API Platform (sfap_api)”
“Manage user data via APIs (api)”
“Perform requests at any time (refresh_token, offline_access)”
Require Proof Key for Code Exchange: ✅
Require Secret for Web Server Flow: ✅
Require Secret for Refresh Token Flow: ✅
Enable Client Credentials Flow: ✅

Click “Save”, then “Continue”
Click “Manage Consumer Details”
