internal/impl/salesforce/README.md
brew install salesforce-clisf org login web — opens a browser, log in and authorize.A Connected App must be created in your Salesforce org and configured to use the client_credentials OAuth grant. The app runs on behalf of a designated Run-As user and that user's permissions apply to all API calls.
Deploy the Connected App:
./app/setup.sh > .env
The script deploys the Connected App via the Metadata API, writes SALESFORCE_ORG_URL and SALESFORCE_CLIENT_ID to .env, and prints a deep-link to the app's Setup page on stderr:
Connected App: https://<org>.salesforce.com/lightning/setup/ConnectedApplication/page?address=%2F<id>
Retrieve the Consumer Secret:
.env:
SALESFORCE_CLIENT_SECRET="<secret>"
set -a; source .env; set +a
./app/setup.sh > /dev/null
When SALESFORCE_CLIENT_SECRET is set, setup.sh probes the client_credentials OAuth flow end-to-end. OAuth: OK on stderr means the integration tests (internal/impl/salesforce/input_salesforce*_integration_test.go) can run against this org. Any other response is printed verbatim and the script exits non-zero.