Docs
Salesforce app and sign-in
Signed in? Open this page in the app, with links straight to your team's screens.
Promote Force talks to Salesforce through one app of its own: you sign in with it and connect your orgs with it, with nothing to set up. Teams that need to can bring their own app instead.
Sign in with Salesforce
On the sign-in page, choose Production or Developer Edition, Sandbox or your My Domain, then Sign in with Salesforce. Promote Force asks Salesforce only who you are (openid, email, profile) and keeps no Salesforce token from it.
- The first time, your Promote Force account is found by your Salesforce email, which Salesforce must report as verified. It links only if that Promote Force account has verified its email too; otherwise verify it first (or use Forgot password?, which also verifies it). With no account for that email, a new one is created and you can start a team or accept an invitation.
- Already have a password account with a different email? Sign in with your password, then link Salesforce under Account. You can link several Salesforce users (for example production and a sandbox) and remove them there.
- Signing in to Promote Force does not connect an org: that is a separate step on Connected orgs.
Connecting orgs
Connected orgs → Connect with Salesforce uses Promote Force’s app by default. Salesforce asks you to allow access (api, refresh_token), and the refresh token is stored encrypted and never sent back to the browser.
For Salesforce admins
If your org restricts access to connected apps that are not installed (API Access Control, or “Admin approved users are pre-authorized”), users can’t sign in or connect until an admin allows the app. Either:
- install Promote Force’s app in your org (Setup → Connected Apps OAuth Usage → find Promote Force → Install, after someone has authorized it once), then give your developers access through a profile or permission set;
- or give your developers the Approve Uninstalled Connected Apps permission;
- or bring your own apps, below. They only change how orgs are connected, not how people sign in.
Your own apps: one per org
Salesforce now only creates External Client Apps, and a local one only signs in users of the org it was created in (and of sandboxes created or refreshed from it afterwards). Anywhere else Salesforce answers “Cross-org OAuth flows are not supported for this external client app”. So a team that brings its own apps adds one app per org, for example production, the full-copy UAT sandbox and each developer sandbox, each with that org’s My Domain.
Owners and admins will find the step-by-step guide, with the exact callback URL and a copy button, in the app under Connected orgs → Salesforce apps.
- In the org: Setup → External Client App Manager → New External Client App, distribution state Local.
- Enable OAuth, paste Promote Force’s callback URL, and add the scopes
apiandrefresh_token, offline_access. - Require PKCE, and require the secret for the web-server and refresh-token flows.
- In the app’s OAuth policies, set Permitted Users to “All users may self-authorize”, IP Relaxation to “Relax IP restrictions”, and keep the refresh token valid until revoked.
- In Promote Force, Add an app: a name, the org’s My Domain (for example
acme--uat.sandbox.my.salesforce.com; the Lightning address from your browser works too), and the consumer key and secret. Click Test credentials. A new app can take up to 10 minutes to start working.
When someone connects an org, Promote Force picks the app in this order:
- the team app whose My Domain matches the one entered on the Connect form (any form of that domain);
- otherwise the team default app, if one is marked (useful for a production app whose sandboxes were copied after it was created);
- otherwise Promote Force’s own app.
The Connect form shows which app will be used (“Signs in with UAT”). When your team only has org-specific apps, the My Domain is required, because without it there is no way to tell which org’s app to use. Orgs already connected always refresh through the exact app that connected them, even if another app is added for their domain later.
Editing an app’s name, My Domain or secret keeps its connections working. A different consumer key is a different app, and removing an app lists the orgs it connected: they show Reconnect required until reconnected through another app.
How Promote Force keeps it safe
- Every sign-in and connection uses PKCE and a single-use state that expires after a few minutes.
- Consumer secrets and refresh tokens are stored encrypted and never sent back to the browser.
- Each connection is refreshed with the exact app that issued it.
- Refresh Token Rotation is supported: when Salesforce issues a new refresh token on every refresh, Promote Force stores the new one at once and only ever refreshes one connection at a time, so a replaced token is never reused. Don’t share a connection’s login (for example the same SFDX auth URL) with another tool, or the two will invalidate each other.
- Replace or remove one of your apps and only the orgs it connected show Reconnect required, with a clear message.
Orgs an app can’t sign in to
A local app signs in users of the org it was created in and of sandboxes created or refreshed from it afterwards. For an org without its own app, such as a scratch org, either add an app for it or connect with an SFDX auth URL on the Connected orgs page:
sf org display --target-org my-scratch --verbose --json
and paste the sfdxAuthUrl value.