Language IO for Salesforce | Named Credential Configuration
Your Salesforce Named Credential stores your Language IO authentication URL and parameters. It allows Language IO applications installed in Salesforce to make external callouts to Language IO.
Important: This article covers Salesforce Named Credential configuration with OAuth 2.0 client credentials, which is Language IO's recommended configuration. For Salesforce Named Credentials with Basic Auth (username and password), see Language IO for Salesforce | (Legacy Basic Auth) Named Credential Configuration.
- Prerequisities
- Creating an External Auth Identity Provider
- Creating an External Credential
- Creating a Named Credential
- Configuring and Assigning External Credential Principal Access
Prerequisities
- Generate your Language IO OAuth 2.0 client credentials if you haven't done so already. You will need your client ID, secret, and token URL.
Creating an External Auth Identity Provider
- In Salesforce, go to Setup → "Named Credentials".
- In the "External Auth Identity Providers" tab, click "New".
- Give the new External Auth Identity Provider a "Label", "Name", and "Description".
- Set "Authentication Protocol" to "OAuth 2.0".
- Set "Authentication Protocol" to "Client Credentials".
- Enter your Language IO Client ID and Secret.
- Enable "Pass client credentials in request body".
- Set "Token Endpoint URL" to your token URL.
- Click "Save".
Configuring the Customer Request Parameters
- With your External Auth Identity Provider open, scroll down to "Custom Request Parameters".
- In the "Custom Request Parameters" section, click "New".
- For "Name," enter:
audience - For "Value," enter:
https://api.languageio.com/translation_services - Set "Request Type" to "Token Request".
- Set "Parameter Location" to "Body Parameter".
- Click "Save".
Creating an External Credential
- In Salesforce, go to Setup → "Named Credentials".
- In the "External Credentials" tab, click "New".
- Give the new External Credential a "Label", "Name", and "Description".
- Set the "Authentication Protocol" to "OAuth 2.0".
- Set Authentication Flow Type to "Configured in an External Auth Identity Provider".
- Under "External Auth Identity Provider", select your External Auth Identity Provider.
- Click "Save".
Configuring the External Credential Principal
- With your External Credential open, scroll down to "Principals".
- In the "Principals" section, click "New".
- For "Parameter Name," enter:
Main - Click "Save".
Creating a Named Credential
- In Salesforce, go to Setup → "Named Credentials".
- In the "Named Credentials" tab, click "New".
- Give the new Named Credential a "Label" and "Name".
- Enable "Enabled for Callouts".
-
For "URL", enter:
https://golinguist.com/linguistnow/resources/Note: If Language IO has informed you that your account exclusively uses our EU infrastructure, usehttps://eu.golinguist.com/linguistnow/resources/instead. - In the "Authentication" section, set "External Credential" to your External Credential.
- In the "Callout Options" section, enable "Generate Authorization Header".
- In the "Managed Package Access" section, list the namespaces of the applications that will use this Named Credential (comma-separated):
- Language IO Case:
LanguageIO - Language IO Enhanced Chat:
Lio - Language IO Article:
LIOAT - Language IO API:
Lio
- Language IO Case:
- Click "Save".
Configuring and Assigning External Credential Principal Access
Agents must have access to the External Credential Principal and read access to the User External Credentials object. You can create a new permission set for these permissions, or add them to an existing permission set.
- Open your Permission Set overview
- Click "External Credential Principal Access".
- Enable your External Credential Principal.
- Click "Save".
- Back in the overview, click "Object Settings".
- Find and click "User External Credentials".
- Click "Edit"
- Enable "Read"
- Click "Save".
- Finally, assign the permission set to all users who will use this credential.