Setting up OAuth in Salesforce Article
This article describes how to setup OAuth for Salesforce authentication.
Prerequisite
Before you install Language I/O Article Translation, you must configure the following Salesforce settings:
- In each profile for which you want to install the package installed, go to Administrative Permissions and enable "Manage Salesforce Knowledge".
- For these profiles, go to "Data Category Visibility" (in Setup > Profiles > {the relevant profile}) and enable visibility of the relevant Data Categories for Knowledge Articles. This is useful to help narrow down the search criteria when users start a translation project.
- Go to General User Permissions and enable the following permissions:
- Article Translation - Edit
- Article Translation - Publish
- Article Translation - Submit for Translation
In this article
Authorizing OAuth for Salesforce Article
Creating the Connected App
- Log in to the Salesforce instance in Lightning mode. Go to “Setup”.
- In Quick Find, search for “App Manager”.
- Click the “New Connected App” button in the upper right hand corner:
- Select "New Connected App", then click Continue:
-
Populate the following fields:
- Connected App Name: Language IO Connected App
- API Name: Use the auto generated name
- Contact Name: dev_ops@languageio.com
- Check Enable OAuth Settings
- Callback URL: https://golinguist.com/linguistnow/handleHelpOAuthDecision
-
Selected OAuth Scopes:
- Manage user data via APIs (API)
- Access content resources (content)
- Perform requests at any time (refresh_token, offline_access)
- Check Require Secret for Web Server Flow.
- Check Require Secret for Refresh Token Flow.
- Press “Save”, then press “Continue”.
Note: It may take between 2 and 10 minutes for changes to go into effect. - Next, in the API (Enable OAuth Settings) section, click on the Manage Consumer Details button.
- The Consumer Details screen opens. Copy the Consumer Key and Consumer Secret. Store them in a safe place and share them to Language I/O when they set up your account.
Creating a Salesforce Integration User
Create an account in Salesforce that can login to the site with the proper permissions required for the plugin you want to enable. This account is what defines the permissions Language I/O uses via the access token that OAuth retrieves.
The required permissions for this account should be the following:
- Article Translation - Edit
- Article Translation - Publish
- Article Translation - Submit for Translation
Authorizing the OAuth Connection
Important: You must have a Language I/O profile admin (SSP) user account to log into Language I/O and authorize the connection. If you do not have one (and Language I/O Support did not create one for you), submit a support request.
-
- Login to the following Language I/O page:
https://golinguist.com/linguistnow/consumer/help-oauth
Note: If it does not work, log off with the following link, then try again:
https://golinguist.com/linguistnow/launch/logout - You are redirected to your Salesforce instance. Log in with the account you just set up and approve the requested permissions.
- After approving the permissions, you are redirected to a Language I/O page with a message that OAuth was successful.
- Login to the following Language I/O page:
Revoking OAuth for Salesforce
- To revoke an auth token run the following
Get
request:https://login.salesforce.com/services/oauth2/revoke?token=[Add token value here]
Comments
0 comments
Please sign in to leave a comment.