Connect a Salesforce org
OAuth to production or a sandbox, or an sfdx auth URL.
There are two ways to connect an org. Both end with the same connection.
#Connect with OAuth
- In Sources, add Salesforce.
- Choose where to log in: production, a sandbox (
test.salesforce.com), or your My Domain. - Log in and allow access.
The flow is OAuth 2.0 authorization code with PKCE. It requests the scopes api, refresh_token and offline_access.
#Connect with an sfdx auth URL
If you already work with the Salesforce CLI, paste an auth URL for an org you have authorised:
sf org display --target-org my-sandbox --verbose --json
# copy the "sfdxAuthUrl" value: force://PlatformCLI::[email protected]#What the connection is used for
| Access | What it covers |
|---|---|
| Read | The org's metadata. |
| Never read | Business records, on any path. |
| Not scanned | Managed-package metadata. |
| Deployed to the org | Nothing. |
The login is stored encrypted with AES-256-GCM. See Security.
#Your sf project
The factory works on the repository as a normal Salesforce DX project. It plans changes as source-format metadata under force-app and reads your project-scratch-def.json for the plan's Org section. There is no Evidentra file to add to the repository.