Authorization
Authorization Code
You can authorize a maximum of five accounts in Salesforce.
You can create multiple Salesforce connections and manage them from your Connections page.
When creating your connection to Salesforce, use a System Administrator profile if you plan to use the following action cards:
- Activate User
- Create User
- Deactivate User
- Freeze User
- Remove User Entitlements
- Unfreeze User
- Update User
- Upload Document
Salesforce FedRAMP High tenants
Okta Workflows in Okta for Government High only supports connections made with accounts based in Salesforce High IL5 tenants.
Procedure
Use the following steps to create a Salesforce connection in Okta Workflows:
-
Either open the Connections tab in the Workflows platform, or open an Salesforce action card.
-
Click New Connection.
-
From the Auth Scheme dropdown list, select Authorization Code.
-
In the Connection Name field, enter a display name. As a best practice, use a consistent naming convention for all connections.
-
From the Environment dropdown, select your Salesforce account environment. Most accounts use a Production environment, unless you know specifically that you're using a sandbox account.
-
In the OAuth window, enter your Salesforce email and password.
If you're already logged into Salesforce, your credentials aren't required.
-
If you have a custom Salesforce domain, for example,
yourcompany.mysalesforce.com, click Use Custom Domain. Enter the domain in the Custom Domain field, and then click Continue. -
Click Allow to authorize access to your Salesforce account.
After you create a connection on one Salesforce card, you can use the same connection every time you use any Salesforce connector. You can also create multiple connections for each connector to link all your accounts and manage them from your Connections page.
A user is limited to five concurrent tokens. Salesforce remembers the last five tokens that are granted at any given time. If a sixth connection is made, then the first connection is lost.
Supported Scopes
The following OAuth scopes must be enabled in your Salesforce environment:
-
api -
web -
refresh_token -
offline_access
See OAuth Tokens.
Refresh token
If you're using scheduled flows longer than 30 days, you must implement a weekly schedule flow that calls the Salesforce API to avoid refresh token expiration. Without this, connections fail. Flows that are run infrequently may experience an OAuth refresh error until you re-auth the connection.
Token max
Salesforce limits the number of active OAuth connections per account to five. If you exceed this number, the oldest connections break.Client Credentials
The connector supports client credentials connection using a Local External Client Application (ECA).
Prerequisite
You must create a Local ECA app in your Salesforce organization. See Create a Local ECA app for a client credentials connection.
Procedure
Use the following steps to create a Salesforce connection in Okta Workflows:
-
Open the Connections tab in the Workflows platform, or open a Salesforce action card.
-
Open the Connections tab in the Workflows platform, or open a Salesforce action card.
-
Click New Connection.
-
From the Auth Scheme dropdown list, select Client Credentials.
-
In the Connection Name field, enter a display name. As a best practice, use a consistent naming convention for all connections.
-
From the Environment dropdown list, select your Salesforce account environment. Most accounts use a Production environment, unless you know specifically that you're using a sandbox account.
-
Enter the Domain Name (subdomain), Client ID, and Client Secret.
-
Select Create.
After you create a connection on one Salesforce card, you can use the same connection every time you use any Salesforce connector. You can also create multiple connections for each connector to link all your accounts and manage them from your Connections page.