Prerequisites
- A Salesforce administrator for the target org.
- A Veryfront project with Salesforce tools declared in an agent.
- The hosted Veryfront API, which supplies the Salesforce provider adapter. The
generic Veryfront runtime cannot scaffold or execute Salesforce OAuth routes.
An embedding host that supplies its own Salesforce adapter must declare
VERYFRONT_HOST_ADAPTER_INTEGRATIONS=salesforceto expose the connector catalog. This does not enable generic Salesforce scaffolding.
Connect a Salesforce user
Install the Veryfront Salesforce Integration package in each Salesforce org that users connect to Veryfront. Salesforce External Client Apps are scoped to an org. Without the installed package, Salesforce rejects a cross-org authorization request.- Sign in to the Salesforce org as an administrator.
- Open the Veryfront Salesforce Integration beta installation page.
- Select Install for Admins Only and acknowledge that the application is not distributed through AppExchange.
- Wait for the installation to complete.
- In Salesforce Setup, open External Client App Manager and select Veryfront.
- Confirm that the app is Packaged (Installed) and Enabled.
- Under Policies, select the permitted-users policy. The beta package permits all users to self-authorize. Restrict access to the required profile or permission set when the org uses a tighter access policy.
Use a service account
Use a service account when a run needs non-interactive access. Veryfront uses Salesforce OAuth client credentials and executes as the Connected App’s dedicated Run As integration user. It does not open browser consent or use a user’s personal OAuth token. In the target Salesforce org:- Create a dedicated integration user with the minimum object, field, and API permissions required by the project.
- Create or configure a Salesforce Connected App for the client-credentials flow.
- Enable Client Credentials Flow and select the Manage user data via APIs (
api) OAuth scope. - In the Connected App policy, set permitted users to Admin approved users are pre-authorized, then select the dedicated integration user as the Run As user.
- Record the Connected App consumer key and consumer secret in your approved secret manager.
Set
SALESFORCE_SERVICE_ACCOUNT_LOGIN_URL to the target org’s Salesforce My
Domain origin, for example https://acme.my.salesforce.com. Veryfront rejects
generic login endpoints such as https://login.salesforce.com and
https://test.salesforce.com; it also rejects paths and non-HTTPS URLs. Use
the My Domain origin, not the instance URL returned after authentication.
All three variables are required. If any service-account variable is missing,
Veryfront fails closed and does not fall back to a human OAuth connection for
non-interactive runs. Rotate the consumer secret in Salesforce and update the
project environment variable through the approved secret-management workflow.
Verify it worked
- Start a new agent run that uses a read-only Salesforce tool, such as account or case lookup.
- Confirm the tool returns data from the target Salesforce org.
- For a service account, confirm the Salesforce audit trail attributes the request to the configured integration user.
Related
- veryfront/integrations: Connector catalog and helper API.
- Salesforce integration: Why Veryfront uses a governed Salesforce integration layer.