> ## Documentation Index
> Fetch the complete documentation index at: https://docs.airmdr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAML Integration with Azure Active Directory

> AirMDR supports SAML (Security Assertion Markup Language) integration with Azure AD to enable Single Sign-On (SSO) functionality to authenticate users for access to the AirMDR UI.

### Overview

SAML (Security Assertion Markup Language) integration with Azure AD enables Single Sign-On (SSO) functionality. This allows users to access multiple applications with just one set of credentials by securely transferring authentication and authorization information between Azure AD (the Identity Provider) and AirMDR (Service Providers).

### Pre-requisites

<Tip>
  Prior to set-up, Super Admin must have the **Global Administrator** role in Azure AD.
</Tip>

### SSO Set-up & Configuration

<Steps>
  <Step title="Step 1">
    **Configure Azure AD as the Identity Provider**

    1. Sign in to [Azure Portal](https://portal.azure.com/) with Azure AD administrator account.

    2. In the left-hand navigation pane, select **"Microsoft Entra ID"**.

    3. Click **+** **Add** dropdown list and then select **"Enterprise application"**.

    4. Choose the tab **"Create your own application”.**

    5. Provide a name for your application, in the **"What's the name of your app?**" space.

    6. Select **“Integrate any other application you don’t find in the gallery (Non-gallery)”**.

    7. Click **"Create"**.

           <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure-AD-SSO/Azure3.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=328bf3d6add6409b9904dc0b8a37274a" alt="" width="779" height="386" data-path="images/Azure-AD-SSO/Azure3.png" />

           <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure2.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=5d76d83e4120e8b26877c87a135a537c" alt="" width="780" height="240" data-path="images/Azure2.png" />
  </Step>

  <Step title="Step 2">
    **Configure Single Sign-On (SSO)**

    1. Select "**Single sign-on"** from the left-hand menu on the application's overview page.

    2. Choose the "**SAML"** option.
  </Step>

  <Step title="Step 3">
    **Set Up Basic SAML Configuration**

    * Click the edit icon next to **“Basic SAML Configuration”**.

    * Provide the required specifications as stated below

    * **Identifier (Entity ID)**: This is typically a URL specific to your application.

    * **Reply URL (Assertion Consumer Service URL)**: The URL where Azure AD will send the SAML token.

          <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure-AD-SSO/Azure1.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=790925481587c4822b807e1a061af3b5" alt="" width="334" height="400" data-path="images/Azure-AD-SSO/Azure1.png" />

    <Tip>
      To **Copy** the Service URL:

      * Login into the AirMDR UI.

      * Navigate on to the bottom left, click on the **User** > **Go to Admin dashboard** > **AirMDR System Organization** > **SSO SETTINGS**

      <Note>
        Accessible by only Admins/Super Admins
      </Note>

      <img src="https://mintcdn.com/airmdr/W8fdv67VSs6YDZWp/images/Okta-SSO-Setup/SSO-4.png?fit=max&auto=format&n=W8fdv67VSs6YDZWp&q=85&s=cf9505f0e707518412bcb92cdeeeee31" alt="" width="359" height="506" data-path="images/Okta-SSO-Setup/SSO-4.png" />
    </Tip>

    * Click "**Save"** after entering the necessary information.

          <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure-AD-SSO/Azure4.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=ac3e0192ee7cc7b946697f12879e5187" alt="" width="554" height="420" data-path="images/Azure-AD-SSO/Azure4.png" />
  </Step>

  <Step title="Step 4">
    **Configure User Attributes and Claims**

    * In the **“Attributes & Claims”** section, click the edit icon.

    * Ensure that the necessary user attributes (e.g., email, name) are correctly mapped to the corresponding claims required by your application.

    * Remove the name space URIs for **“givenname”** and **“surname”** and update the keys to **“firstname”** and **“lastname”**.

    * Update the value for emailaddress to user.userprincipalname

          <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure-AD-SSO/Azure5.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=ec2502dff309ed176160e585b30157fb" alt="" width="452" height="240" data-path="images/Azure-AD-SSO/Azure5.png" />
  </Step>

  <Step title="Step 5">
    **Download the SAML Signing Certificate**

    * In the **“SAML Signing Certificate”** section, download the **“Certificate (Base64)” or Federation Metadata XML**.

    <Info>
      Certificate may be required by your application to verify the SAML token’s signature.
    </Info>
  </Step>

  <Step title="Step 6">
    **Enable AirMDR access to Azure AD metadata**

    * Copy the **“Login URL and Microsoft Entra Identifier”** from the **“Set up \[Your Application Name]”** section.

          <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure-AD-SSO/Azure6.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=a57b6542713d15c789dc7994020288a1" alt="" width="659" height="162" data-path="images/Azure-AD-SSO/Azure6.png" />
  </Step>

  <Step title="Step 7">
    **Set up and configure SSO in AirMDR UI**

    * Log in to the [AirMDR](https://app.airmdr.com).

    * On the bottom left, click on the **User** and select **Go to Admin dashboard**.

          <img src="https://mintcdn.com/airmdr/W8fdv67VSs6YDZWp/images/Okta-SSO-Setup/SSO-6.png?fit=max&auto=format&n=W8fdv67VSs6YDZWp&q=85&s=c9cd0abb8356701ab4f566bc939d7c8d" alt="" width="139" height="124" data-path="images/Okta-SSO-Setup/SSO-6.png" />

    * Select the Organization for which SSO has to be set up.

    * Under the **SSO SETTINGS** tab, click **Edit**.

          <img src="https://mintcdn.com/airmdr/W8fdv67VSs6YDZWp/images/Okta-SSO-Setup/SSO-7.png?fit=max&auto=format&n=W8fdv67VSs6YDZWp&q=85&s=b60bccdc0f45dea6e730044e2ec76c33" alt="" width="353" height="172" data-path="images/Okta-SSO-Setup/SSO-7.png" />

    * In the **Setup SSO** dropdown list, select **Yes, New Config**.

          <img src="https://mintcdn.com/airmdr/W8fdv67VSs6YDZWp/images/Okta-SSO-Setup/SSO-8.png?fit=max&auto=format&n=W8fdv67VSs6YDZWp&q=85&s=fa86cffdd1dab836113884d8258a1a07" alt="" width="350" height="188" data-path="images/Okta-SSO-Setup/SSO-8.png" />

    * In the **SSO SETTINGS**, provide the SAML Protocol Configuration Parameters from Azure AD

    <Check>
      - In the **Identity Provider (IdP) to use** dropdown list select **Custom**

      - Use **Upload** option to include the **Identity Provider Certificate** from Azure AD

      - In the **Provide your SSO endpoint**, enter the Identity Provider **Login URL** from Azure AD

      - In the **Use Issuer ID** dropdown, select **Yes** and provide **Issuer ID** from Azure AD

      - In the **Provide your Issuer ID**, enter the **Microsoft Entra Identifier**
    </Check>

    * Click **Submit**. (SSO Authentication is successfully created for your account).

          <img src="https://mintcdn.com/airmdr/X3g7cZ6VsjtW21-h/images/Azure-AD-SSO/Azure1.png?fit=max&auto=format&n=X3g7cZ6VsjtW21-h&q=85&s=790925481587c4822b807e1a061af3b5" alt="" width="334" height="400" data-path="images/Azure-AD-SSO/Azure1.png" />

          <img src="https://mintlify.s3.us-west-1.amazonaws.com/airmdr/images/Azure-AD-SSO/Azure-AD6.PNG" alt="" />
  </Step>

  <Step title="Step 8">
    **Assign Users & Groups**

    * Select **“Users and groups”** from the left-hand menu, assign users/groups who will use SSO.

    * Click **“Add user/group”**, select the users or groups you want to assign to the application, and click **“Assign”**.

    <Tip>
      Configure **Conditional Access Policies** for security if needed.
    </Tip>
  </Step>
</Steps>

### Evaluate SSO Configuration

* Navigate to the [AirMDR Login](https://app.airmdr.com) page.

* Enter the User **Email** ID assigned to the Azure SAML application, and click **Proceed to Login**.

<img src="https://mintcdn.com/airmdr/W8fdv67VSs6YDZWp/images/Okta-SSO-Setup/SSO-10.png?fit=max&auto=format&n=W8fdv67VSs6YDZWp&q=85&s=ff2cff41f291968cdf4dfb36d9692379" alt="" width="171" height="107" data-path="images/Okta-SSO-Setup/SSO-10.png" />

* The page will be redirected to the Azure AD URL provided as the **SSO Endpoint** in the **SSO SETTINGS**.

<img src="https://mintcdn.com/airmdr/W8fdv67VSs6YDZWp/images/Okta-SSO-Setup/SSO-11.png?fit=max&auto=format&n=W8fdv67VSs6YDZWp&q=85&s=b48e81d3f90b13fdadf42b6932c52575" alt="" width="241" height="319" data-path="images/Okta-SSO-Setup/SSO-11.png" />

* Ensure that the test user can sign in successfully using Azure AD credentials.

* After successful login, the user should be redirected to [Test case](https://test-darryl.airmdr.com/casesv2) with a valid session

<Frame as="div">
  <Icon icon="rocket-launch" />  Hurray! You are Logged in Successfully
</Frame>
