Docs Index
salesforce connector.md

Proof Card: Salesforce Connector

Status: production Last verified: 2026-07-29 · git sha c6e11bcf

Claim

SalesforceConnector is a real client for the Salesforce REST API (/services/data/v{N}). It authenticates via the OAuth2 Resource Owner Password Credentials grant — also known as the username-password flow — by POSTing grant_type=password along with client_id/client_secret/username/password+securityToken to ${loginUrl}/services/oauth2/token (SalesforceConnector.ts:488-489). It targets https://login.salesforce.com (or a custom loginUrl) for token exchange and the resolved instanceUrl for data calls. The connector implements full CRUD plus query operations against live Salesforce orgs.

Source

Tests

Live vs Fixture

Known Gaps

Verification (60-second AI-reviewer recipe)

npm test -- tests/unit/__tests__/SalesforceConnector.test.ts
grep -n "salesforce.com\|services/oauth2/token\|services/data\|grant_type" src/connectors/SalesforceConnector.ts | head -10

The grep should show the Salesforce login host, the OAuth2 token endpoint path, the REST API version path, and grant_type: 'password' (line 489) — the four load-bearing string constants that pin both the wire format AND the specific OAuth2 flow (Resource Owner Password Credentials, not client_credentials).