To connect Dex to your Salesforce organization, you need to configure a Connected App in Salesforce so Dex can authenticate securely using the OAuth 2.0 username-password flow.
Steps
1Log in to Salesforce as an Administrator, click the gear icon in the top right, and select Setup.
2In the Quick Find box, search for and select App Manager, then click New Connected App in the top right.
3Fill in Basic Information — Connected App Name: Dex Integration; API Name: Dex_Integration; Contact Email: your email address.
4In the API (Enable OAuth Settings) section, check Enable OAuth Settings and set the Callback URL to https://login.salesforce.com/services/oauth2/callback (required by Salesforce, but only a placeholder for this flow).
5Under Selected OAuth Scopes, add "Manage user data via APIs (api)" and "Perform requests on your behalf at any time (refresh_token, offline_access)", then click Save (it can take 2–10 minutes to activate).
6On the Connected App page, click Manage Consumer Details (verify your identity if prompted) and copy the Consumer Key and Consumer Secret.
7If your org has IP restrictions and you are not on a trusted network, reset a security token: user avatar > Settings > Reset My Security Token > Reset Security Token (it is emailed to you).
Paste into Dex
The connection form in the Dex app store asks for these values:
Consumer Key
Consumer Secret
Revealed via Manage Consumer Details after verifying your identity.
Username
Password
Security Token
Only if your org has IP restrictions or you are off a trusted network.