Language IO for Salesforce | (Legacy Basic Auth) 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 Credentials with legacy Basic Auth (username and password) credentials. Language IO recommends configuring Salesforce Named Credentials with OAuth 2.0 client credentials. See Language IO for Salesforce | Named Credential Configuration.
- Prerequisities
- Creating an External Auth Identity Provider for OAuth 2.0
- Creating an External Credential
- Creating a Named Credential
- Configuring and Assigning External Credential Principal Access
Prerequisities
- You will need your Language IO consumer username and password.
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 "Custom".
- Click "Save".
Configuring the External Credential Principal
- With your External Credential open, scroll down to "Principals".
- In the "Principals" section, click "New".
- Set a "Parameter Name".
- Click the "Add" button twice to add two parameters.
- For the first parameter's "Name", enter:
Username - Set "Value" to your Language IO Basic Auth username.
- For the second parameter's "Name", enter:
Password - Set "Value" to your Language IO Basic Auth password.
- Click "Save".
Configuring the Custom Header
- With your External Credential open, scroll down to "Custom Headers".
- In the "Custom Headers" section, click "New".
- Set "Name" to "Authorization".
- Set "Value" to the following formula (replace "[External_Credential_Name]" with the name of your External Credential):
{!'Basic ' & BASE64ENCODE(BLOB($Credential.[External_Credential_Name].Username & ':' & $Credential.[External_Credential_Name].Password))} - 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:
- Disable "Generate Authorization Header".
- Enable "Allow Formula in HTTP 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.