Create a Local ECA app for a client credentials connection

Create a Local External Client App (ECA) in Salesforce so that you can connect to Salesforce from Okta Workflows using the client credentials flow.

Procedure

  1. In Salesforce, navigate to Setup.
  2. Navigate to Apps > External Client Apps > External Client App Manager.
    For example, https://{YOUR_INSTANCE}.my.salesforce-setup.com/lightning/setup/ManageExternalClientApplication/home
  3. Select New External Client App.
  4. In the External Client App Name field, enter a name for the app, for example, Okta Workflows Local ECA App.
  5. In the Email field, enter the email address to associate with the app.
  6. From the Distribution State list, select Local.
  7. Under API (Enable OAuth Settings), select the Enable OAuth checkbox.
  8. Under App Settings, in the Callback URL field, enter the URL for your environment.

    The client credentials flow doesn't use the callback URL, but the Salesforce UI requires it.

    • Okta Workflows Preview connections: https://oauth.workflows.oktapreview.com/oauth/salesforce2_29/cb

    • Okta Workflows Production connections: https://oauth.workflows.okta.com/oauth/salesforce2_29/cb

    • FedRAMP Moderate and High connections: https://oauth.workflows.okta-gov.com/oauth/salesforce2_29/cb

    • FedRAMP IL5 connections: https://oauth.workflows.okta.mil/oauth/salesforce2_29/cb

  9. In Selected OAuth Scopes, select Manage user data via APIs (api).
  10. Under Flow Enablement, select the Enable Client Credentials Flow checkbox.
  11. Select Create.
  12. Open the Policies tab, and then select Edit.
  13. Under OAuth Flows and External Client App Enhancements, select the Enable Client Credentials Flow checkbox.
  14. In the Run As (Username) field, enter the Salesforce account to use for the connection.
    To manage users, the account must have the System Administrator profile.

What to do next

When you create the connection in Okta Workflows, get the client ID and client secret from the Settings tab of the app. See Authorization.