---
sourceDocument: Australia Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/platform-security

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Configure a connection to send OAuth request via the MID Server using external vault

# Configure a connection to send OAuth request via the MID Server using external vault {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 30. Juni 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 10 Minuten Lesedauer

Configure a connection to send requests for OAuth 2.0 tokens to a third-party auth server via the MID Server. The MID Server adds OAuth 2.0 credentials (Client ID and Client Secret) from the CyberArk external vault, OAuth scope, and token URL from the instance to the request and sends them to the third-party auth server.

## Vorbereitungen

Verify the following items.

* 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>.
* You have created a JAR file that enables the MID Server to resolve credentials with the CyberArk external vault. See [Create a JAR file to resolve credentials](https://servicenow-prod.fluidtopics.net/lyCK46V8iCh33_zA3dsQWw#t_CreatJARFileToResolCred "Create a JAR file to resolve credential identifiers sent from the MID Server into actual credentials from the repository.").
* You have imported the JAR file to the MID Server.
* The MID Server is set up for CyberArk. See [Configure the MID Server for CyberArk AIM](https://servicenow-prod.fluidtopics.net/mQKyIoZMOVnfUh0hh1J2jw "Configure the config.xml file to grant the MID Server access to the CyberArk vault with AIM API.").
* OAuth 2.0 are configured on the CyberArk external storage. See [Configure OAuth 2.0 credentials on CyberArk](https://servicenow-prod.fluidtopics.net/nhS8UL3a6j4~HHERFcR5wA "Configure your CyberArk vault with OAuth 2.0 credentials that the ServiceNow instance requests.").
{#configure-oauth-2-0-authentication__ul_ufx_jgt_vbc}

Role required: none

## Warum und wann dieser Vorgang ausgeführt wird

You can configure the connection and credential with a configuration template or manually. A configuration template defines the connection record form components and is reusable for other connection records. Manually, you can
configure the connection for this purpose only. The topic shows both approaches.

## Prozedur

1. Configure the connection with a configuration template.
   1. Navigate to AllIntegrationHubConfiguration Templates.
   2. Select New.
   3. Select HTTP Connection with OAuth Client Credentials grant type (External Storage).
   4. Update the form, as required.  
      For example, you can provide the scope in the `oauth_entity_profile_scope` and `oauth_entity_scope` fields in the Default Data Template section. To learn to create a configuration template, see [Create a configuration template](https://servicenow-prod.fluidtopics.net/XzvjfDSaEswftVWPy~mZAg "Create a template that defines the inputs required to set up a spoke. Set static key-value pairs to create records and set values that apply to every integration. Set dynamic key-value pairs to gather user input and set field values that may vary. Using this template, admins and flow designers can set up the spoke from a single form.").
   5. Select Submit.  
      You have created the configuration template.
   6. Navigate to AllIntegrationHubConnection \& Credential Aliases.
   7. Update the form.  
      {#configure-oauth-2-0-authentication__table_oqy_4fl_ccc__entry__2}

      | 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`. {#configure-oauth-2-0-authentication__ul_yhj_vzk_vlb} |
      | 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. {#configure-oauth-2-0-authentication__ul_dbr_1gl_ccc} 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](https://www.servicenow.com/docs/access?context=retry-policy&version=australia&pubname=australia-build-workflows&ft:locale=en-US). |
      | 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 (External Storage) that you had created. |
      [Tabelle : 1. Connection and credential alias]

      {#configure-oauth-2-0-authentication__table_oqy_4fl_ccc}
   8. Select Submit.  
      You have created the connection and credential alias record.
   9. Navigate to AllIntegrationHubConnections Dashboard.
   10. In the Search all connections field, enter the name of the connection and credential alias record that you created.
   11. On the connection and credential alias record, select View Details.
   12. Select Configure.
   13. Fill the form.  
       {#configure-oauth-2-0-authentication__table_qyb_hq4_wbc__entry__2}

       | Field | Description |
       |-|-|
       | Connection Name | Name of the connection. You can't update the name. |
       | Connection URL | URL to the third-party server. |
       | Use MID | Option to enable MID Server. Wichtig: Confirm that the option is selected. |
       | MID Selection | Option to specify MID Configuration for Connection. * Specific MID Server: Option to indicate a manual selection of a specific MID Server. * Auto-Select MID-Server: Option to indicate that you want the MID Server automatically selected. * Specific MID Cluster: Option to indicate a manual selection of a MID cluster of MID Servers. {#configure-oauth-2-0-authentication__ul_ryb_hq4_wbc} Wichtig: Confirm that the MID Server you select resides on the same machine as the CyberArk AIM Client that is configured to access the CyberArk vault. See [Configure the CyberArk vault and install the AIM API](https://servicenow-prod.fluidtopics.net/8PFs59BuOELkR~4Jh178eg "Configure the CyberArk vault to allow MID Server access and install the CyberArk AIM API on the MID Server machine."). |
       | MID Server | Option to manually specify a MID Server. This option appears if you select Specific MID Server in the MID Selection field. |
       | MID Cluster | Option to manually specify a MID Cluster. This option appears if you select Specific MID Cluster in the MID Selection field. |
       | External Credential Store | Option to use the CyberArk external credential storage. When you select the option, the MID Server gets the OAuth 2.0 credentials (Client ID and Client secret) from the external credential storage. Wichtig: Confirm that the option is selected. |
       | Credential ID | Identifier for the CyberArk account that holds the Client ID and Client Secret details. To view the procedure to get the credential identifier, see [Configure OAuth 2.0 credentials on CyberArk](https://servicenow-prod.fluidtopics.net/nhS8UL3a6j4~HHERFcR5wA "Configure your CyberArk vault with OAuth 2.0 credentials that the ServiceNow instance requests."). In the Credential ID field, enter an expression using one of these formats. * If all your credentials are in the same safe, configure this safe name in the MID Server config.xml file using the [ext.cred.safe_name](https://servicenow-prod.fluidtopics.net/mQKyIoZMOVnfUh0hh1J2jw "Configure the config.xml file to grant the MID Server access to the CyberArk vault with AIM API.") parameter, and then specify the credential ID by name only, as \<credential ID\>. * To name credentials for a given platform that reside is a specific safe, define the credential ID as \<safe\>:\<credential ID\>:\<platform ID\>. * If your credentials are in multiple safes, specify the credential ID in this format: \<safe\>:\<credential ID\>. {#configure-oauth-2-0-authentication__ul_tff_p22_ccc} |
       | OAuth Token URL | URL that specifies the endpoint to get the access token from the OAuth server. |
       [Tabelle : 2. Configure Connection form]

       {#configure-oauth-2-0-authentication__table_qyb_hq4_wbc}
   14. Select Configure Connection.
   {#configure-oauth-2-0-authentication__substeps_bm5_mp4_wbc}
2. Configure a connection manually.
   1. Navigate to AllSystem OAuthApplication Registry.
   2. Select New.
   3. Select Connect to a third party OAuth Provider using an external vault.
   4. Fill the form.  
      {#configure-oauth-2-0-authentication__table_zl2_3xj_wbc__entry__2}

      | Field | Description |
      |-|-|
      | Name | Name to identify the application registry record. For example, enter: OAuth 2.0 token request via MID app. |
      | Application | Option to specify the names of applications that can access this application registry. The field is read only. |
      | Default Grant type | Default method to obtain access token by the client application from the OAuth server. The default and read-only grant type is Client Credentials. |
      | Accessible from | Option to specify which applications can access this application registry. |
      | Token URL | URL that specifies the endpoint to get the access token from the OAuth server. |
      | Send Credentials | Option to specify the method of sending the OAuth 2.0 in the request body. |
      | Comments | Enter related comments. |
      [Tabelle : 3. New application registry details]

      {#configure-oauth-2-0-authentication__table_zl2_3xj_wbc}
   5. Under the OAuth scope column, create one or more OAuth scopes by doing the following steps.  
      1. Under the Name column, double-click the field and enter a name of the OAuth scope.
      2. Under the OAuth scope column, double-click the field and enter the scope.
      {#configure-oauth-2-0-authentication__ol_yqr_wx4_wbc}
   6. Select Submit.  
      You have created an OAuth entity profile and the application registry.
   7. Navigate to AllIntegrationHubConnections \& CredentialsCredentials.
   8. Select New.
   9. Select OAuth 2.0 Credentials.
   10. Select External Storage View.  
       Wichtig:  
       Select External Storage View only if the view is different from that of an OAuth 2.0 credentials external storage form.
   11. Fill the form.  
       {#configure-oauth-2-0-authentication__table_fjn_vy4_wbc__entry__2}

       | Field | Description |
       |-|-|
       | Name | Name of the credential record. |
       | Applies to | Option to specify if the credential record is applicable for all MID Servers, or a specific MID Server. If specific, add the MID Servers. Choose from either of the following options. * All MID Servers: The MID Server is automatically selected from a collection of MID Servers. * Specific MID Servers: Option to specify one or more MID Servers. {#configure-oauth-2-0-authentication__ul_jhb_fz4_wbc} |
       | MID Servers | Option to specify one or more MID Servers. Hinweis: This field appears if you select Specific MID Servers in the Applies to field. |
       | Active | Option to specify whether the credential record is available for use. By default, it's available. |
       | OAuth Entity Profile | Option to specify an OAuth entity profile that the credential uses. Select the OAuth entity profile you had created above. See [Configure an OAuth entity profile](https://servicenow-prod.fluidtopics.net/uCVXQyGwU_F8bvJHd8gIyQ#configure-oauth-2-0-authentication__substeps_lsc_5wj_wbc). |
       | External credential store | Option to specify that the credentials are stored in an external storage and not in the ServiceNow instance. Wichtig: Confirm that the option is selected. |
       | Credential ID | Option to specify credential identifier for the CyberArk account which holds Client ID and Client Secret. To view the procedure to get the credential identifier, see [Configure OAuth 2.0 credentials on CyberArk](https://servicenow-prod.fluidtopics.net/nhS8UL3a6j4~HHERFcR5wA "Configure your CyberArk vault with OAuth 2.0 credentials that the ServiceNow instance requests."). |
       | Credential storage vault | Option to specify the name of the external credential storage vault. Verify that you have selected CyberArk. |
       [Tabelle : 4. OAuth 2.0 Credentials]

       {#configure-oauth-2-0-authentication__table_fjn_vy4_wbc}
   12. Select Submit.  
       You have created the credential record.
   13. Create a connection and credential alias.  
       To know the steps, see [Create a Connection \& Credential alias](https://servicenow-prod.fluidtopics.net/~Aalv0fAQwqapXknH2MgmA "Define an alias to label a credential or connection record.").
   14. Navigate to AllIntegrationHubConnections.
   15. Select New.
   16. Select HTTP(s) Connection.
   17. Fill the form.  
       {#configure-oauth-2-0-authentication__table_wrz_qhn_ccc__entry__2}

       | Field | Description |
       |-|-|
       | Name | Unique name of this HTTP(s) connection. |
       | Active | Option to set the connection that you're creating active. The option is selected by default. |
       | Credential | Select the credential record used to authorize the connection. Select the credential that you had created above. |
       | Connection alias | Select the alias record to associate with this connection. Using an alias enables you to update the connection record without having to reconfigure any actions or activities that use the alias. |
       | URL builder | Either manually enter the connection URL or use system to build the URL based on the inputs. Default is unchecked. If checked, the connection URL is calculated from the following fields: * Mutual authentication --- Check box if mutual authentication is used. * Protocol --- If mutual authentication is not used, enter protocol. The default is HTTPs. * Protocol profile --- If mutual authentication is used, enter protocol profile from sys_protocol_profile. * Host * Port * Base path --- Path of the connection string. {#configure-oauth-2-0-authentication__ul_fwz_2vc_zpb} Hinweis: If mutual authentication is checked, connection URL is built: Protocol + :// + host:port +URL. If mutual authentication is unchecked, connection URL is built: Protocol profile + :// + host:port +URL |
       | Connection URL | If URL builder is unchecked, enter the connection URL into this field. Hinweis: If mutual authentication is checked, connection URL is built: Protocol + :// + host:port +URL. If mutual authentication is unchecked, connection URL is built: Protocol profile + :// + host:port +URL |
       | Use MID server | Option to specify that you want to send OAuth token requests via a MID Server. Wichtig: Confirm that the option is selected. |
       | Connection timeout | Number of milliseconds the system waits for a successful host connection. If a successful connection does not occur during this time, the connection request times out. Leave this field empty to use the system default connection timeout value. |
       | MID Selection | Option to specify one of the following options. * Auto-Select MID Server: Selects from MID Servers based on MID Server criteria, regardless of whether they are members of a cluster. * Specific MID Server: Manually select a MID Server. * Specific MID Cluster: Automatic reassignment to another MID Server only selects from members of the specified cluster. {#configure-oauth-2-0-authentication__ul_isg_z3n_ccc} Wichtig: Confirm that the MID Server you select resides on the same machine as the CyberArk AIM Client that is configured to access the CyberArk vault. See [Configure the CyberArk vault and install the AIM API](https://servicenow-prod.fluidtopics.net/8PFs59BuOELkR~4Jh178eg "Configure the CyberArk vault to allow MID Server access and install the CyberArk AIM API on the MID Server machine."). |
       | 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 (![MID capabilities selection icon.]()) to select one or more capabilities. Hinweis: * Confirm that the MID Server you select resides on the same machine as the CyberArk AIM Client that is configured to access the CyberArk vault. See [Configure the CyberArk vault and install the AIM API](https://servicenow-prod.fluidtopics.net/8PFs59BuOELkR~4Jh178eg "Configure the CyberArk vault to allow MID Server access and install the CyberArk AIM API on the MID Server machine."). * This option appears if you select Auto-Select MID Server in the MID Selection field. {#configure-oauth-2-0-authentication__ul_y2g_4nk_sdc} |
       | MID Server | Manually select a MID Server. This option appears if you select Specific MID Server from the MID Selection field. |
       | MID Cluster | Manually select a MID cluster. This option appears if you select Specific MID Cluster from the MID Selection field. |
       | MID Application | Option to specify a MID application or accept the default application choice. Hinweis: This option appears if you select Auto-Select MID Server in the MID Selection field. By default, the ALL option is selected. |
       [Tabelle : 5. Connection form]

       {#configure-oauth-2-0-authentication__table_wrz_qhn_ccc}
   18. Select Submit.  
       You've created an HTTP(s) connection record.
   19. Navigate to AllProcess AutomationIntegrationHubConnections Dashboard.
   20. In the Search all connections field, enter the name of the connection record that you created.  
       The connection alias record appears.  
       Abbildung : 1. OAuth 2.0 connection record is created
   {#configure-oauth-2-0-authentication__substeps_lsc_5wj_wbc}

