Set up OAuth integration via MID Server
Create a connection record that enables the sending of an OAuth token request to a third-party server via a MID Server.
Antes de Iniciar
Confirm that you have subscribed to the ServiceNow IntegrationHub Standard Pack Installer. For more information, see https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/legal/snc-addendum-integrationhub.pdf.
Role required: Admin
Procedimento
- Navigate to All > IntegrationHub > Configuration Templates.
- Select New.
- Select HTTP Connection with OAuth Client Credentials grant type.
-
Update the form, as required.
For example, you can provide the scope in the
oauth_entity_profile_scopeandoauth_entity_scopefields in the Default Data Template section. To learn to create a configuration template, see Create a configuration template. -
Select Submit.
You have created the configuration template.
- Navigate to All > IntegrationHub > Connection & Credential Aliases.
-
Update the form.
Tabela 1. Connection and credential alias Field Description Name Name of the alias. An alias can only contain alpha, number, and underscore characters. During an upgrade, the tag in the credential record migrates to a Connection & Credential Alias. If the credential tag contains special characters other than alphabets, numbers, and underscores, it preserves the tag name after the upgrade. You can still use this migrated alias, but you cannot update the alias until you change the name to meet the naming restrictions.
Application Unique identifier for the Connections & Credentials alias, based on the format scope_name.alias_name.- If the scope is Global, the ID is the alias name. For example, if you create a Workday alias in the global scope, it sets the ID to
workday. - If you create a workday alias in the HR app scope, it sets the ID to
x_hr_app.workday.
Parent Alias Option to select the alias under which you're creating this connection and credential alias. The connection and credential alias that you're creating is a child alias. A child alias is listed under the Child Aliases tab on the parent connection and credential alias page. Type Option to indicate the type of alias you're creating. Choose from the following options. - Credential: Alias that contains a credential record.
- Connection and Credential: Alias that contains both connection and credential record. This option is selected by default.
Confirm that Connection and Credential is selected.
Support Multiple Active Connections Designator that indicates whether the alias supports multiple active connections. Add connections using the Connections table and associated them to the alias using the Connections related list. Default Retry Policy Retry policy for the alias. For more information, see Retry policy. Configuration Template Option to select the configuration template based on which you're creating the connection and credential alias. Select the template of the type HTTP Connection with OAuth Client Credentials grant type that you had created. - If the scope is Global, the ID is the alias name. For example, if you create a Workday alias in the global scope, it sets the ID to
-
Select Submit.
You have created the connection and credential alias record.
- Navigate to All > IntegrationHub > Connections Dashboard.
- In the Search all connections field, enter the name of the connection and credential alias record that you created.
- On the connection and credential alias record, select View Details.
- Select Configure.
-
Fill the form.
Tabela 2. Connection record Field Description Connection Name Name of the connection record. You can't update the name. Connection URL Option to provide the URL that connects with the third-party server. Use MID Option to specify that you want to send OAuth token requests via a MID Server. Importante:Confirm that the option is selected.MID Selection Option to specify whether you want to use a specific MID Server or enable auto-selection of MID Server, or use a MID Cluster. Choose one of the following options. - Auto-Select MID Server
- Specific MID Server
- Specific MID Cluster
Capabilities Option to select one or more MID Server capabilities. Capabilities define the specific functions of a MID Server within an IP address range, allowing an application to select the most appropriate MID Server. Select the MID capabilities icon ( ) to select one or more capabilities.
Nota:This option appears if you select Auto-Select MID Server in the MID Selection field.MID Application Option to specify a MID application or accept the default application choice. Nota:This option appears if you select Auto-Select MID Server in the MID Selection field. By default, the ALL option is selected.MID Server Option to select a MID Server. Nota:This option appears if you select Specific MID Server in the MID Selection field.MID Cluster Option to select a MID Cluster. Nota:This option appears if you select Specific MID Cluster in the MID Selection field.OAuth Client ID Option to specify the client ID. OAuth Client Secret Option to specify the client secret. Connect to Auth Server via MID Server Option to specify that the connection between the ServiceNow instance and the Auth server takes place via the MID Server. Importante:Confirm that the option is selected.OAuth Token URL Option to specify the OAuth token URL that is used to request OAuth tokens. -
Select Configure and Get OAuth Token.
The connection and credential record is created.