Connecting a Salesforce Org to Guard using local ECA flow
Before registering your org in Guard, please complete the following configuration in Salesforce.
Create an External Client App
Navigate to Salesforce Setup.
Search for External Client Apps.
Click New External Client App.

Enter the required details:
Basic Information
External Client App Name
API Name (auto-populated)
Contact Email
Enable OAuth Settings
Select Enable OAuth Settings.
Provide the Callback URL in the format:
{$instance}/oauth/_callback
For example:
https://yourguard.autorabit.com/oauth/_callback
Add the following OAuth scopes:
Access the identity URL service (id, profile, email, address, phone)
Full access (full)
Manage user data via APIs (api)
Manage user data via Web browsers (web)
Perform requests at any time (refresh_token, offline_access)
Flow Enablement
Enable the following:
Authorization Code and Credentials Flow (Sub-options are not required.)
Security Settings
Keep the first 2 options checked
Check: Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows (will be enforced by Salesforce from Winter '27)

Save and Activate
Save the application and activate it.
Collect Client Credentials
After activation, copy the following credentials:
Consumer ID (Consumer Key)
Consumer Secret
Register a New Salesforce Org Using OAuth via ECA
Step 1: Open Org Registration
Navigate to:
Salesforce Orgs → Add New Org
Step 2: Select Connection Type
Choose:
External Client App
Step 3: Enter Required Details
Provide the following information:
Org Name
Org Type
Org Purpose (Production / Sandbox)
Client ID
Client Secret
Click Login with Salesforce.
Step 4: Authorize in Salesforce
You will be redirected to the Salesforce login page.
Log in and approve Guard access.
Salesforce will redirect you back to Guard.
Step 5: Successful Registration
After successful authorization:
The org is registered.
Tokens are securely encrypted and stored.
The org becomes available across applicable Guard modules.
The connection status displays as Connected.
Last updated
Was this helpful?

