Skip to content

Commit 722b24c

Browse files
committed
Product Backlog Item 891969: SaaS App Tutorial: Terraform Enterprise
1 parent a747108 commit 722b24c

File tree

2 files changed

+154
-0
lines changed

2 files changed

+154
-0
lines changed
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
---
2+
title: 'Tutorial: Azure Active Directory single sign-on (SSO) integration with Terraform Enterprise | Microsoft Docs'
3+
description: Learn how to configure single sign-on between Azure Active Directory and Terraform Enterprise.
4+
services: active-directory
5+
documentationCenter: na
6+
author: jeevansd
7+
manager: mtillman
8+
ms.reviewer: barbkess
9+
10+
ms.assetid: de2bd4d8-bee4-4580-97a4-47c7738babba
11+
ms.service: active-directory
12+
ms.subservice: saas-app-tutorial
13+
ms.workload: identity
14+
ms.tgt_pltfrm: na
15+
ms.topic: tutorial
16+
ms.date: 01/10/2020
17+
ms.author: jeedes
18+
19+
ms.collection: M365-identity-device-management
20+
---
21+
22+
# Tutorial: Azure Active Directory single sign-on (SSO) integration with Terraform Enterprise
23+
24+
In this tutorial, you'll learn how to integrate Terraform Enterprise with Azure Active Directory (Azure AD). When you integrate Terraform Enterprise with Azure AD, you can:
25+
26+
* Control in Azure AD who has access to Terraform Enterprise.
27+
* Enable your users to be automatically signed-in to Terraform Enterprise with their Azure AD accounts.
28+
* Manage your accounts in one central location - the Azure portal.
29+
30+
To learn more about SaaS app integration with Azure AD, see [What is application access and single sign-on with Azure Active Directory](https://docs.microsoft.com/azure/active-directory/active-directory-appssoaccess-whatis).
31+
32+
## Prerequisites
33+
34+
To get started, you need the following items:
35+
36+
* An Azure AD subscription. If you don't have a subscription, you can get a [free account](https://azure.microsoft.com/free/).
37+
* Terraform Enterprise single sign-on (SSO) enabled subscription.
38+
39+
## Scenario description
40+
41+
In this tutorial, you configure and test Azure AD SSO in a test environment.
42+
43+
* Terraform Enterprise supports **SP** initiated SSO
44+
* Terraform Enterprise supports **Just In Time** user provisioning
45+
46+
## Adding Terraform Enterprise from the gallery
47+
48+
To configure the integration of Terraform Enterprise into Azure AD, you need to add Terraform Enterprise from the gallery to your list of managed SaaS apps.
49+
50+
1. Sign in to the [Azure portal](https://portal.azure.com) using either a work or school account, or a personal Microsoft account.
51+
1. On the left navigation pane, select the **Azure Active Directory** service.
52+
1. Navigate to **Enterprise Applications** and then select **All Applications**.
53+
1. To add new application, select **New application**.
54+
1. In the **Add from the gallery** section, type **Terraform Enterprise** in the search box.
55+
1. Select **Terraform Enterprise** from results panel and then add the app. Wait a few seconds while the app is added to your tenant.
56+
57+
58+
## Configure and test Azure AD single sign-on for Terraform Enterprise
59+
60+
Configure and test Azure AD SSO with Terraform Enterprise using a test user called **B.Simon**. For SSO to work, you need to establish a link relationship between an Azure AD user and the related user in Terraform Enterprise.
61+
62+
To configure and test Azure AD SSO with Terraform Enterprise, complete the following building blocks:
63+
64+
1. **[Configure Azure AD SSO](#configure-azure-ad-sso)** - to enable your users to use this feature.
65+
* **[Create an Azure AD test user](#create-an-azure-ad-test-user)** - to test Azure AD single sign-on with B.Simon.
66+
* **[Assign the Azure AD test user](#assign-the-azure-ad-test-user)** - to enable B.Simon to use Azure AD single sign-on.
67+
1. **[Configure Terraform Enterprise SSO](#configure-terraform-enterprise-sso)** - to configure the single sign-on settings on application side.
68+
* **[Create Terraform Enterprise test user](#create-terraform-enterprise-test-user)** - to have a counterpart of B.Simon in Terraform Enterprise that is linked to the Azure AD representation of user.
69+
1. **[Test SSO](#test-sso)** - to verify whether the configuration works.
70+
71+
## Configure Azure AD SSO
72+
73+
Follow these steps to enable Azure AD SSO in the Azure portal.
74+
75+
1. In the [Azure portal](https://portal.azure.com/), on the **Terraform Enterprise** application integration page, find the **Manage** section and select **single sign-on**.
76+
1. On the **Select a single sign-on method** page, select **SAML**.
77+
1. On the **Set up single sign-on with SAML** page, click the edit/pen icon for **Basic SAML Configuration** to edit the settings.
78+
79+
![Edit Basic SAML Configuration](common/edit-urls.png)
80+
81+
1. On the **Basic SAML Configuration** section, enter the values for the following fields:
82+
83+
a. In the **Sign on URL** text box, type a URL using the following pattern:
84+
`https://<TFE HOSTNAME>/session`
85+
86+
b. In the **Identifier (Entity ID)** text box, type a URL using the following pattern:
87+
`https://<TFE HOSTNAME>/users/saml/metadata`
88+
89+
> [!NOTE]
90+
> These values are not real. Update these values with the actual Sign on URL and Identifier. Contact [Terraform Enterprise Client support team](https://support.hashicorp.com) to get these values. You can also refer to the patterns shown in the **Basic SAML Configuration** section in the Azure portal.
91+
92+
1. On the **Set up single sign-on with SAML** page, in the **SAML Signing Certificate** section, find **Certificate (Base64)** and select **Download** to download the certificate and save it on your computer.
93+
94+
![The Certificate download link](common/certificatebase64.png)
95+
96+
1. On the **Set up Terraform Enterprise** section, copy the appropriate URL(s) based on your requirement.
97+
98+
![Copy configuration URLs](common/copy-configuration-urls.png)
99+
100+
### Create an Azure AD test user
101+
102+
In this section, you'll create a test user in the Azure portal called B.Simon.
103+
104+
1. From the left pane in the Azure portal, select **Azure Active Directory**, select **Users**, and then select **All users**.
105+
1. Select **New user** at the top of the screen.
106+
1. In the **User** properties, follow these steps:
107+
1. In the **Name** field, enter `B.Simon`.
108+
1. In the **User name** field, enter the [email protected]. For example, `[email protected]`.
109+
1. Select the **Show password** check box, and then write down the value that's displayed in the **Password** box.
110+
1. Click **Create**.
111+
112+
### Assign the Azure AD test user
113+
114+
In this section, you'll enable B.Simon to use Azure single sign-on by granting access to Terraform Enterprise.
115+
116+
1. In the Azure portal, select **Enterprise Applications**, and then select **All applications**.
117+
1. In the applications list, select **Terraform Enterprise**.
118+
1. In the app's overview page, find the **Manage** section and select **Users and groups**.
119+
120+
![The "Users and groups" link](common/users-groups-blade.png)
121+
122+
1. Select **Add user**, then select **Users and groups** in the **Add Assignment** dialog.
123+
124+
![The Add User link](common/add-assign-user.png)
125+
126+
1. In the **Users and groups** dialog, select **B.Simon** from the Users list, then click the **Select** button at the bottom of the screen.
127+
1. If you're expecting any role value in the SAML assertion, in the **Select Role** dialog, select the appropriate role for the user from the list and then click the **Select** button at the bottom of the screen.
128+
1. In the **Add Assignment** dialog, click the **Assign** button.
129+
130+
## Configure Terraform Enterprise SSO
131+
132+
To configure single sign-on on **Terraform Enterprise** side, you need to send the downloaded **Certificate (Base64)** and appropriate copied URLs from Azure portal to [Terraform Enterprise support team](https://support.hashicorp.com). They set this setting to have the SAML SSO connection set properly on both sides.
133+
134+
### Create Terraform Enterprise test user
135+
136+
In this section, a user called B.Simon is created in Terraform Enterprise. Terraform Enterprise supports just-in-time user provisioning, which is enabled by default. There is no action item for you in this section. If a user doesn't already exist in Terraform Enterprise, a new one is created after authentication.
137+
138+
## Test SSO
139+
140+
In this section, you test your Azure AD single sign-on configuration using the Access Panel.
141+
142+
When you click the Terraform Enterprise tile in the Access Panel, you should be automatically signed in to the Terraform Enterprise for which you set up SSO. For more information about the Access Panel, see [Introduction to the Access Panel](https://docs.microsoft.com/azure/active-directory/active-directory-saas-access-panel-introduction).
143+
144+
## Additional resources
145+
146+
- [ List of Tutorials on How to Integrate SaaS Apps with Azure Active Directory ](https://docs.microsoft.com/azure/active-directory/active-directory-saas-tutorial-list)
147+
148+
- [What is application access and single sign-on with Azure Active Directory? ](https://docs.microsoft.com/azure/active-directory/active-directory-appssoaccess-whatis)
149+
150+
- [What is conditional access in Azure Active Directory?](https://docs.microsoft.com/azure/active-directory/conditional-access/overview)
151+
152+
- [Try Terraform Enterprise with Azure AD](https://aad.portal.azure.com/)

articles/active-directory/saas-apps/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,8 @@
13701370
href: teamwork-tutorial.md
13711371
- name: Templafy
13721372
href: templafy-tutorial.md
1373+
- name: Terraform Enterprise
1374+
href: terraform-enterprise-tutorial.md
13731375
- name: TextMagic
13741376
href: textmagic-tutorial.md
13751377
- name: The Funding Portal

0 commit comments

Comments
 (0)