Create a key pair
The key pair is a certificate you upload to the app and the matching private key. Create both with OpenSSL:
cert.crtis the certificate you upload to Salesforce.- Copy the full contents of
private.keyacross as the Private Key (PEM), including theBEGINandENDlines.
Create an External Client App
The app holds the certificate and decides which users can connect with it.
Start the app
Sign in to Salesforce for the environment you are connecting, then click the gear icon and select Setup.
- Production — Salesforce production sign-in
- Sandbox — Salesforce sandbox sign-in
- In the Quick Find box, enter
External Clientand select External Client App Manager. - Click New External Client App.

Fill in the basic information
Complete the Basic Information section.
- External Client App Name:
StackOne Integration - API Name: filled in from the app name
- Contact Email: Your email address
- Distribution State: Local

Add the API scope
Expand API (Enable OAuth Settings) and select Enable OAuth.
- Callback URL:
https://login.salesforce.com/services/oauth2/callback. The form requires a value, but the JWT bearer flow never redirects to it. - Under Available OAuth Scopes, select each scope listed and click the arrow to move it to Selected OAuth Scopes.

Upload the certificate
Under Flow Enablement, select Enable JWT Bearer Flow.
- Under Certificate Upload, click Upload Files and select
cert.crt. - Click Create.

Select the user's profile
On the new app, open the Policies tab and click Edit. Under App Policies, give the connecting user access to the app.
- Under Select Profiles, move the user’s profile from Available Profiles to Selected Profiles, or add one of the user’s permission sets under Select Permission Sets.

Set the permitted users
Expand OAuth Policies.
- Permitted Users: Admin approved users are pre-authorized
- Click Save.

Copy the consumer key and secret
Open the Settings tab, expand OAuth Settings, and click Consumer Key and Secret.
- Enter the verification code Salesforce emails you.
- Copy the Consumer Key across.
- Copy the Consumer Secret across.

Find your username
The username is the Salesforce user the connection acts as. Every action runs with this user’s permissions, and the user’s profile or permission set must be the one you pre-authorized on the app.
- Copy the Username across.
- Format: an email-style login such as
integration.user@acme.com
Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions