# Microsoft Entra ID SSO Guide

This guide explains how to connect WHITELABEL to Microsoft Entra ID (formerly Azure Active Directory) using SAML 2.0.

## Prerequisites

* A Microsoft Entra ID tenant
* An application for use with WHITELABEL
* Entra ID admin privileges to manage SSO settings
* Access to the [WHITELABEL dashboard](https://dashboard.whitelabel.com/)

<Steps>
  <Step title="Configure the basic SAML settings">
    First, go to the dashboard and click your profile image, then open **Security**. Navigate to the Single Sign-On (SSO) tab, click **Set up** and gather this info:

    * Identifier (Entity ID)
    * Assertion Consumer Service URL

    <Frame><img src="/images/reference/microsoft-entra-id-sso-guide/image1.png" alt="WHITELABEL dashboard 'Set up SSO in WHITELABEL' panel showing the identity provider set to Microsoft, with the Identifier (Entity ID) and Assertion Consumer Service URL fields to copy into the identity provider" /></Frame>

    In Microsoft Entra ID, go to:

    **Enterprise applications → All applications → Your application → Single sign-on**

    Under **Basic SAML configuration**, enter the values from the WHITELABEL dashboard.

    <Frame><img src="/images/reference/microsoft-entra-id-sso-guide/image2.png" alt="Microsoft Entra ID enterprise application Single sign-on page showing the Basic SAML Configuration section with Identifier (Entity ID) and Reply URL (Assertion Consumer Service URL) fields highlighted, plus the Attributes & Claims and SAML Certificates sections below" /></Frame>
  </Step>

  <Step title="Export and upload the federation metadata XML">
    In Microsoft Entra ID, navigate to the **SAML certificates** section and download the **Federation Metadata XML** file.

    <Frame><img src="/images/reference/microsoft-entra-id-sso-guide/image3.png" alt="Microsoft Entra ID SAML Certificates section with the Federation Metadata XML download link highlighted, used to export the metadata file for WHITELABEL" /></Frame>

    Then, in the WHITELABEL dashboard:

    1. Upload the XML file under **WHITELABEL configuration → Option A: Upload metadata XML**
    2. Wait for the **Upload completed** confirmation
    3. Click **Save**

    <Frame><img src="/images/reference/microsoft-entra-id-sso-guide/image4.png" alt="WHITELABEL dashboard 'WHITELABEL configuration' step 3 showing Option A with the federation metadata XML file uploaded and marked 'Upload completed', and the Cancel and Save buttons" /></Frame>

    Alternatively, you can take the information listed in **Option B** and enter it manually.
  </Step>

  <Step title="Verify SAML certificate settings">
    In Microsoft Entra ID, open **SAML certificates** and make sure:

    * The signing option is **Sign SAML response and assertion**
    * The signing algorithm is **SHA-256**

    Click **Save** to apply the changes.
  </Step>
</Steps>

## Troubleshooting

If you cannot set up the SSO connection or run into issues after initial configuration:

* Remember WHITELABEL requires **signed SAML responses**, check:
  * Both the SAML response and the assertion are signed
  * The signing algorithm is **SHA-256**
  * The signing certificate matches the one uploaded to WHITELABEL
* Review SSO logs in the WHITELABEL dashboard under **Security → Single sign-on (SSO)**