--- title: "Integrate Azure AD with ZTP using OIDC" slug: "ztp-azure-oidc" updated: 2026-06-17T14:24:03Z published: 2026-06-17T14:24:03Z canonical: "support.appgate.com/ztp-azure-oidc" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # Integrate Azure AD with ZTP using OIDC ## Prerequisites This integration requires the following: - An Azure Active Directory (AD) instance on the Microsoft Azure public cloud - An active ZTP account, accessible using the Bootstrap Identity provided by AppGate - A test user account on your Azure directory with at least the following attributes configured: - `username`, for example: `testuser` - `firstName`, for example: `Joe` - `lastName`, for example: `Smith` > [!NOTE] > NOTE > > Attribute changes may take time to propagate. For details about creating a user account, refer to the Azure documentation. ## Step 1: Add a new application in Azure 1. Sign in to the Azure portal using your Azure Active Directory administrator account. 2. In the left menu, go to **Microsoft Entra ID** > **Enterprise Applications**. 3. Click **New application**, then click **Create your own application**. 4. Enter a name, for example: `AppGate ZTP`. 5. Under **What are you looking to do with your application?**, select *App you're developing*. 6. Click **Create**. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-juet0032.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=i5ip%2FMMPpHCCCjVnOIhzBAzEQi0sLuEZjPrkEmtzr48%3D) 1. Select the account type appropriate for your organization. 2. In the ***Redirect URI*** field, select *Web* and enter a placeholder URL, for example: `https://example.com`. You will replace this value after completing the ZTP Cloud Console configuration. 3. Click **Register**. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-acdv72l7.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=GJpv0ycgVnQ8oYSyfj4cVaJiLfaZZCIVCIHDbHKkE0Y%3D) > [!NOTE] > NOTE > > For additional details about creating an enterprise application, refer to the [Azure Documentation](https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/add-application-portal). ## Step 2: Configure the application 1. Return to **Microsoft Entra ID** > **Enterprise Applications** and select the application you created. 2. In the left menu, select **Users and Groups**, then click **+ Add user/group** to add users to the application and enable login. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-clsbvuhb.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=TFTxGRvpcos%2BBzHMf5vAyakkW5EkCu7A82GZhw85fkM%3D) 1. In the left menu, select **Properties**, then click **application registration**. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-yr3twja5.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=HdRbFhB0ZTWmrtOZyUkE5I8SrirIsRxF88wxuwue6%2Bs%3D) ## Step 3: Record the client secret 1. In the left menu, select **Certificates & Secrets**, then click **+ New Client Secret**. 2. Copy and save the ***Value*** field immediately. You will need this value for the ZTP configuration. This value is not visible after you leave this page. ## Step 4: Record the client ID 1. In the left menu, click **Overview**. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-dxu75ana.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=BSW%2FBtgZ8RJMUU1i4aWUpenXQ1tLVS076bCSfuehp1M%3D) 1. Copy and save the ***Application (client) ID*** value. You will need this value for the ZTP configuration. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-1sxhcbkv.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=l2ocJlGRurV%2BUDkRGR%2BhvDUki1pP9enb794sDjOCxDs%3D) ## Step 5: Retrieve endpoint URLs 1. In the top menu, click **Endpoints**. 2. Copy the well-known configuration URL and open it in a new browser tab. 3. Record the following values from the well-known configuration. You will need them to complete the ZTP configuration form: | ZTP field | Well-known configuration property | | --- | --- | | Authentication URL | `authorization_endpoint` | | Token URL | `token_endpoint` | | User info URL | `userinfo_endpoint` | | JWKS URL | `jwks_uri` | ## Step 6: Configure the IdP in ZTP 1. In ZTP, go to **Settings** > **Identity Providers** in the left menu. 2. Click **Add New** and select *Open ID provider*. 3. Complete the form using the following values: | Field | Description | | --- | --- | | Name* | `Azure AD - OIDC` | | Audience/Client ID* | The Application (client) ID value recorded in [Step 4](/v1/docs/azure-ad-integration-as-an-oidc-idp#step-3-record-the-client-id). | | Client Secret* | The client secret value recorded in [Step 3](/v1/docs/azure-ad-integration-as-an-oidc-idp#step-3-record-the-client-secret). | | Authentication URL* | URL values recorded in [Step 5](/v1/docs/azure-ad-integration-as-an-oidc-idp#step-5-retrieve-endpoint-urls). | | Token URL* | | User Info URL | | JWKS URL | | Email Attribute* | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` | | First Name Attribute* | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname` | | Last Name Attribute* | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | | Username Attribute* | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name` | 1. Copy the Redirect URI from the ZTP configuration form by clicking the copy to clipboard button. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-5g1f9b6o.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=7u01OV3rMiIhCXLYjdMYtx1hB716Q0klnVk8c1X4gek%3D) 1. Click **Save** and return to Azure. ## Step 7: Set the redirect URI in Azure 1. In the left menu, select **Authentication**. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-299ygrwp.jpg?sv=2026-02-06&spr=https&st=2026-11-25T06%3A07%3A09Z&se=2026-11-25T07%3A07%3A09Z&sr=b&sp=r&sig=xcUFHDdWidjIISpvm9va81hFG0kp7PMju5kROPlkb60%3D) 1. Replace the placeholder URL in the ***Redirect URI*** field with the Redirect URI you copied from ZTP. 2. Click **Save** and [test the integration](/v1/docs/test-integration).