Setting up OAuth in Salesforce
This article describes how to setup OAuth for Salesforce authentication.
Tip: OAuth is only required for Salesforce Article, and Case when Human Translation is required. If you use Salesforce Chat or Social Messaging, or if you use Case but do not require Human Translation, you do not need to set up OAuth authentication.
- Authorizing OAuth for Salesforce Case
- Authorizing OAuth for Salesforce Article
- Revoking OAuth for Salesforce
- Add Callback URLs for OAuth
Authorizing OAuth for Salesforce Case
- 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:
-
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/handleResponseOAuthDecision
- Selected OAuth Scopes:
- Manage user data via APIs (API)
- 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.
- 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 LIO uses via the access token that OAuth retrieves.
- Login to the following Language I/O page:
https://golinguist.com/linguistnow/consumer/response-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.
Authorizing OAuth for Salesforce Article
- 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:
-
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.
- 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 LIO uses via the access token that OAuth retrieves.
- 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.
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]
Add Callback URLs for OAuth
- To whitelist URLs for the OAuth callback go to Lightning mode
- Browse to setup
- Search for and launch “App Manager”
- Select edit for the Connected App being used for OAuth
- Add or modify the new callback URL to the “Callback URL” field
Comments
0 comments
Please sign in to leave a comment.