Authenticate Confluence to Salesforce
In Confluence Administration → Apps → Knowledge:Bridge,
Click on the Login to Salesforce button.
Copy the Callback URL.
Go to Salesforce in a new tab as a Salesforce Admin and open the External Client App Manager in the Setup, add a New External Client App filling the required fields.
Go to the API (Enable OAuth Settings) section
-
Check Enable OAuth.
-
Paste the copied Calback URL.
-
Select the following OAuth scopes:
-
Access the identity URL service (id, profile, email, address, phone)
-
Manage user data via APIs (api)
-
Perform requests at any time (refresh_token, offline_access)
-
-
Click on the Create button
Once the External Client App was created, copy the Consumer Key and Secret (find them in the Settings Tab → OAuth Settings in the External Client App).
Return to Confluence, paste the copied Consumer Key and Secret and click Continue. Note that the External Client App may take some minutes to be ready (you may get “invalid client Id” if it is not ready).
Log in to Salesforce using the account that will be used for publishing Confluence pages to Salesforce Knowledge. Allow Access to the External Client App created before.
Once authentication is successful, you will be redirected to Confluence, review the Connection Information.
If the Consumer key and secret need to be updated go to the Advanced Options toggle, set the new values and Save, then click on the Login to Salesforce button.