Salesforce Application integration configured to use REST APIs to authenticate using OAuth.
Salesforce provisioning flow fails with the following error visible in the Okta dashboard:
Automatic provisioning of user <user> to app Salesforce failed: The credentials used to connect to the API were invalid; please check your configuration
- Salesforce
- Provisioning
Follow the steps or video below.
- Go to the Okta admin panel and navigate to Applications > Applications > Salesforce > Provisioning > Integration > Edit.
-
Enter the OAuth Consumer Key and OAuth Consumer Secret. See Configure OAuth and REST integration for more details.
-
OAuth Consumer Key: Consumer Key from the Salesforce OAuth settings.
-
OAuth Consumer Secret: Consumer Secret from the Salesforce OAuth settings.
-
- Click Re-authenticate with Salesforce.com.
-
In the new Salesforce.com window, enter the administrator username and password that were used to create the Connected OAuth App.
-
Click Allow to permit access to the Connected App.
- On the Provisioning page in Okta, a confirmation message indicating successful authentication will be displayed. Click Save.
- Afterward, attempt the user provisioning again. Navigate to Dashboard > Tasks. Any failed assignments should appear under Tasks.
-
After identifying the failed task for the user that should be retried, click on Retry Selected.
