Data Sync facilitates the OAuth2 flow through Salesforce's robust security features, including Connected App, Auth. Provider, and Named Credential. To configure this, let's go through the setup process, assuming our goal is to set up a connection in the DSP Installation Org with a Connection to the org named "Org B":
"https://test.salesforce.com/services/oauth2/authorize"
for a sandbox
environment or
"https://login.salesforce.com/services/oauth2/authorize"
for production.
"https://test.salesforce.com/services/oauth2/token"
for a sandbox environment
or
"https://login.salesforce.com/services/oauth2/token"
for production.
"refresh_token"
and any additional scopes
enabled in Org B's Connected App. Use space to seperate the scopes."https://enterprise-e--dev.sandbox.my.salesforce.com/services/authcallback/Salesforce_Org_B"
.
"Named Principal"
."OAuth 2.0"
.For a more detailed walkthrough, refer to the instructional video below: