|
| 1 | +--- |
| 2 | +title: 'Tutorial: Azure Active Directory single sign-on (SSO) integration with Cisco AnyConnect | Microsoft Docs' |
| 3 | +description: Learn how to configure single sign-on between Azure Active Directory and Cisco AnyConnect. |
| 4 | +services: active-directory |
| 5 | +documentationCenter: na |
| 6 | +author: jeevansd |
| 7 | +manager: mtillman |
| 8 | +ms.reviewer: barbkess |
| 9 | + |
| 10 | +ms.assetid: 46f327d0-21fb-4914-be71-9e444f247ebe |
| 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: 03/26/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 Cisco AnyConnect |
| 23 | + |
| 24 | +In this tutorial, you'll learn how to integrate Cisco AnyConnect with Azure Active Directory (Azure AD). When you integrate Cisco AnyConnect with Azure AD, you can: |
| 25 | + |
| 26 | +* Control in Azure AD who has access to Cisco AnyConnect. |
| 27 | +* Enable your users to be automatically signed-in to Cisco AnyConnect 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/manage-apps/what-is-single-sign-on). |
| 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 | +* Cisco AnyConnect 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 | +* Cisco AnyConnect supports **IDP** initiated SSO |
| 44 | +* Once you configure Cisco AnyConnect you can enforce session control, which protect exfiltration and infiltration of your organization’s sensitive data in real-time. Session control extend from Conditional Access. [Learn how to enforce session control with Microsoft Cloud App Security](https://docs.microsoft.com/cloud-app-security/proxy-deployment-any-app). |
| 45 | + |
| 46 | +## Adding Cisco AnyConnect from the gallery |
| 47 | + |
| 48 | +To configure the integration of Cisco AnyConnect into Azure AD, you need to add Cisco AnyConnect 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 **Cisco AnyConnect** in the search box. |
| 55 | +1. Select **Cisco AnyConnect** from results panel and then add the app. Wait a few seconds while the app is added to your tenant. |
| 56 | + |
| 57 | +## Configure and test Azure AD single sign-on for Cisco AnyConnect |
| 58 | + |
| 59 | +Configure and test Azure AD SSO with Cisco AnyConnect 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 Cisco AnyConnect. |
| 60 | + |
| 61 | +To configure and test Azure AD SSO with Cisco AnyConnect, complete the following building blocks: |
| 62 | + |
| 63 | +1. **[Configure Azure AD SSO](#configure-azure-ad-sso)** - to enable your users to use this feature. |
| 64 | + 1. **[Create an Azure AD test user](#create-an-azure-ad-test-user)** - to test Azure AD single sign-on with B.Simon. |
| 65 | + 1. **[Assign the Azure AD test user](#assign-the-azure-ad-test-user)** - to enable B.Simon to use Azure AD single sign-on. |
| 66 | +1. **[Configure Cisco AnyConnect SSO](#configure-cisco-anyconnect-sso)** - to configure the single sign-on settings on application side. |
| 67 | + 1. **[Create Cisco AnyConnect test user](#create-cisco-anyconnect-test-user)** - to have a counterpart of B.Simon in Cisco AnyConnect that is linked to the Azure AD representation of user. |
| 68 | +1. **[Test SSO](#test-sso)** - to verify whether the configuration works. |
| 69 | + |
| 70 | +## Configure Azure AD SSO |
| 71 | + |
| 72 | +Follow these steps to enable Azure AD SSO in the Azure portal. |
| 73 | + |
| 74 | +1. In the [Azure portal](https://portal.azure.com/), on the **Cisco AnyConnect** application integration page, find the **Manage** section and select **single sign-on**. |
| 75 | +1. On the **Select a single sign-on method** page, select **SAML**. |
| 76 | +1. On the **Set up single sign-on with SAML** page, click the edit/pen icon for **Basic SAML Configuration** to edit the settings. |
| 77 | + |
| 78 | +  |
| 79 | + |
| 80 | +1. On the **Set up single sign-on with SAML** page, enter the values for the following fields: |
| 81 | + |
| 82 | + a. In the **Identifier** text box, type a URL using the following pattern: |
| 83 | + `< YOUR CISCO ANYCONNECT VPN VALUE >` |
| 84 | + |
| 85 | + b. In the **Reply URL** text box, type a URL using the following pattern: |
| 86 | + `< YOUR CISCO ANYCONNECT VPN VALUE >` |
| 87 | + |
| 88 | + > [!NOTE] |
| 89 | + > These values are not real. Update these values with the actual Identifier and Reply URL. Contact [Cisco AnyConnect Client support team](https://www.cisco.com/c/en/us/support/index.html) to get these values. You can also refer to the patterns shown in the **Basic SAML Configuration** section in the Azure portal. |
| 90 | + |
| 91 | +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 file and save it on your computer. |
| 92 | + |
| 93 | +  |
| 94 | + |
| 95 | +1. On the **Set up Cisco AnyConnect** section, copy the appropriate URL(s) based on your requirement. |
| 96 | + |
| 97 | +  |
| 98 | + |
| 99 | +### Create an Azure AD test user |
| 100 | + |
| 101 | +In this section, you'll create a test user in the Azure portal called B.Simon. |
| 102 | + |
| 103 | +1. From the left pane in the Azure portal, select **Azure Active Directory**, select **Users**, and then select **All users**. |
| 104 | +1. Select **New user** at the top of the screen. |
| 105 | +1. In the **User** properties, follow these steps: |
| 106 | + 1. In the **Name** field, enter `B.Simon`. |
| 107 | + 1. In the **User name ** field, enter the [email protected]. For example, `[email protected]`. |
| 108 | + 1. Select the **Show password** check box, and then write down the value that's displayed in the **Password** box. |
| 109 | + 1. Click **Create**. |
| 110 | + |
| 111 | +### Assign the Azure AD test user |
| 112 | + |
| 113 | +In this section, you'll enable B.Simon to use Azure single sign-on by granting access to Cisco AnyConnect. |
| 114 | + |
| 115 | +1. In the Azure portal, select **Enterprise Applications**, and then select **All applications**. |
| 116 | +1. In the applications list, select **Cisco AnyConnect**. |
| 117 | +1. In the app's overview page, find the **Manage** section and select **Users and groups**. |
| 118 | + |
| 119 | +  |
| 120 | + |
| 121 | +1. Select **Add user**, then select **Users and groups** in the **Add Assignment** dialog. |
| 122 | + |
| 123 | +  |
| 124 | + |
| 125 | +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. |
| 126 | +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. |
| 127 | +1. In the **Add Assignment** dialog, click the **Assign** button. |
| 128 | + |
| 129 | +## Configure Cisco AnyConnect SSO |
| 130 | + |
| 131 | +1. You are going to do this on the CLI first, you might come back through and do an ASDM walk-through at another time. |
| 132 | + |
| 133 | +1. Connect to your VPN Appliance, you are going to be using an ASA running 9.8 code train, and your VPN clients will be 4.6+. |
| 134 | + |
| 135 | +1. First you will create a Trustpoint and import our SAML cert. |
| 136 | + |
| 137 | + ``` |
| 138 | + config t |
| 139 | +
|
| 140 | + crypto ca trustpoint AzureAD-AC-SAML |
| 141 | + revocation-check none |
| 142 | + no id-usage |
| 143 | + enrollment terminal |
| 144 | + no ca-check |
| 145 | + crypto ca authenticate AzureAD-AC-SAML |
| 146 | + -----BEGIN CERTIFICATE----- |
| 147 | + … |
| 148 | + PEM Certificate Text from download goes here |
| 149 | + … |
| 150 | + -----END CERTIFICATE----- |
| 151 | + quit |
| 152 | + ``` |
| 153 | + |
| 154 | +1. The following commands will provision your SAML IdP. |
| 155 | + |
| 156 | + ``` |
| 157 | + webvpn |
| 158 | + saml idp https://sts.windows.net/xxxxxxxxxxxxx/ (This is your Azure AD Identifier from the Set up Cisco AnyConnect section in the Azure portal) |
| 159 | + url sign-in https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxx/saml2 (This is your Login URL from the Set up Cisco AnyConnect section in the Azure portal) |
| 160 | + url sign-out https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0 (This is Logout URL from the Set up Cisco AnyConnect section in the Azure portal) |
| 161 | + trustpoint idp AzureAD-AC-SAML |
| 162 | + trustpoint sp (Trustpoint for SAML Requests - you can use your existing external cert here) |
| 163 | + no force re-authentication |
| 164 | + no signature |
| 165 | + base-url https://my.asa.com |
| 166 | + ``` |
| 167 | +
|
| 168 | +1. Now you can apply SAML Authentication to a VPN Tunnel Configuration. |
| 169 | +
|
| 170 | + ``` |
| 171 | + tunnel-group AC-SAML webvpn-attributes |
| 172 | + saml identity-provider https://sts.windows.net/xxxxxxxxxxxxx/ |
| 173 | + authentication saml |
| 174 | + end |
| 175 | +
|
| 176 | + write mem |
| 177 | + ``` |
| 178 | +
|
| 179 | + > [!NOTE] |
| 180 | + > There is a feature with the SAML IdP configuration - If you make changes to the IdP config you need to remove the saml identity-provider config from your Tunnel Group and re-apply it for the changes to become effective. |
| 181 | +
|
| 182 | +### Create Cisco AnyConnect test user |
| 183 | +
|
| 184 | +In this section, you create a user called Britta Simon in Cisco AnyConnect. Work with [Cisco AnyConnect support team](https://www.cisco.com/c/en/us/support/index.html) to add the users in the Cisco AnyConnect platform. Users must be created and activated before you use single sign-on. |
| 185 | +
|
| 186 | +## Test SSO |
| 187 | +
|
| 188 | +In this section, you test your Azure AD single sign-on configuration using the Access Panel. |
| 189 | +
|
| 190 | +When you click the Cisco AnyConnect tile in the Access Panel, you should be automatically signed in to the Cisco AnyConnect 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). |
| 191 | +
|
| 192 | +## Additional resources |
| 193 | +
|
| 194 | +- [ 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) |
| 195 | +
|
| 196 | +- [What is application access and single sign-on with Azure Active Directory? ](https://docs.microsoft.com/azure/active-directory/active-directory-appssoaccess-whatis) |
| 197 | +
|
| 198 | +- [What is conditional access in Azure Active Directory?](https://docs.microsoft.com/azure/active-directory/conditional-access/overview) |
| 199 | +
|
| 200 | +- [Try Cisco AnyConnect with Azure AD](https://aad.portal.azure.com/) |
| 201 | +
|
| 202 | +- [What is session control in Microsoft Cloud App Security?](https://docs.microsoft.com/cloud-app-security/proxy-intro-aad) |
| 203 | +
|
| 204 | +- [How to protect Cisco AnyConnect with advanced visibility and controls](https://docs.microsoft.com/cloud-app-security/proxy-intro-aad) |
| 205 | +
|
0 commit comments