> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/academy/tier-2-core-skills/m07-governance-rbac-ai-gateway-configuration/lab-3-set-up-microsoft-sso-and-entra.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 3: Set up Microsoft SSO and Entra ID integration

Hands-on lab for lesson 3 of module M07, set up microsoft sso and entra id integration.

{% @uptiq-training/training-labels content="Module 7 | brand
Lesson 3 of 8 | brand
Lab 3 | success
15 minutes | neutral
Bloom level Apply | neutral" %}

{% @uptiq-training/training-navigator title="M07 Governance, RBAC & AI Gateway Configuration" content="Lesson 1: Understand the Platform's governance architecture and Control Center | soon
Lesson 2: Configure RBAC roles and enforce separation of duties | soon
Lab 2: Configure RBAC roles and enforce separation of duties
Lesson 3: Set up Microsoft SSO and Entra ID integration | soon
Lab 3: Set up Microsoft SSO and Entra ID integration | current
Lesson 4: Knowledge check 1 | soon
Lesson 5: Configure the AI Gateway for production model families | soon
Lab 5: Configure the AI Gateway for production model families
Lesson 6: Configure agent authentication and widget identity tokens | soon
Lab 6: Configure agent authentication and widget identity tokens
Lesson 7: Configure and validate policy-based guardrails | soon
Lab 7: Configure and validate policy-based guardrails
Lesson 8: Module assessment | soon" %}

## Lab overview

**Exercise title:** Set Up Microsoft SSO and Entra ID Integration

**Difficulty level:** Apply (Bloom Level 3 — you will configure a real feature in the sandbox, not just describe how it works)

**Estimated hands-on time:** 15 minutes (approximately 12 minutes of active configuration and validation, plus 3 minutes of pre-lab demo viewing)

**What you will build:** You will enable Microsoft SSO in Control Center, connect it to a sandbox Microsoft Entra ID tenant using provided test credentials, and validate that the authentication flow completes by signing out and signing back in via the "Continue with Microsoft" button.

### Prerequisites

* Your sandbox user account must already be invited and active in the Uptiq Platform before you begin. SSO does not bypass the invitation requirement — if your account has not been invited, sign-in via Entra ID will fail even after SSO is correctly configured.
* You must hold the Account Admin or Org Admin role in the sandbox to access Control Center → Admin → Single Sign-On.
* The sandbox Entra ID test credentials (tenant ID, client ID, and client secret) must be provided to you by your deployment team before starting Procedure 2. These are environment setup materials, not authored content — they will not appear in this guide.

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

### Connection details you will need

| Field                      | Where to find it                              |
| -------------------------- | --------------------------------------------- |
| Tenant ID                  | Provided in your sandbox credential sheet     |
| Client ID                  | Provided in your sandbox credential sheet     |
| Client secret              | Provided in your sandbox credential sheet     |
| Your sandbox sign-in email | The email address your invitation was sent to |

### Pre-provisioned resources — no setup required

* Your sandbox user account has already been invited and activated. You do not need to create or invite yourself.
* The sandbox the Platform environment is running and accessible at the URL above.
* Account Admin or Org Admin access has been granted to your sandbox account for this exercise.

{% hint style="info" %}
**Concept:** SSO in the Platform is invite-only. Enabling "Continue with Microsoft" does not automatically grant access to anyone with a valid Entra ID account. Each person must be individually invited by an administrator first. SSO changes how an invited user signs in — not whether they have access.
{% endhint %}

## Configuration template

{% hint style="warning" %}
**Warning:** The exact field names and layout of the Control Center → Admin → Single Sign-On configuration surface are pending SME verification (PKB Gap G2). The fields listed below reflect the standard Microsoft Entra ID / OpenID Connect federation parameters documented in the platform's architecture reference. Confirm the exact field labels against what you see in your sandbox before entering values.
{% endhint %}

The following fields are expected on the SSO configuration surface. Enter the values from your sandbox credential sheet where indicated.

| Setting              | Value                                                       |
| -------------------- | ----------------------------------------------------------- |
| SSO Provider         | Microsoft (Entra ID)                                        |
| Sign-in button label | Continue with Microsoft (do not change)                     |
| Tenant ID            | `<YOUR-TENANT-ID>` (from your sandbox credential sheet)     |
| Client ID            | `<YOUR-CLIENT-ID>` (from your sandbox credential sheet)     |
| Client Secret        | `<YOUR-CLIENT-SECRET>` (from your sandbox credential sheet) |
| Redirect URI         | `<auto-populated by the platform — do not change>`          |

{% hint style="info" %}
**Tip:** The Redirect URI is generated by the platform and must match exactly what is registered in your Entra ID app registration. Do not edit it. If your sandbox Entra ID app registration was pre-configured by the deployment team, this value is already registered and you do not need to take any action.
{% endhint %}

{% hint style="info" %}
**Concept:** The Platform federates with Microsoft Entra ID using OpenID Connect through a brokered identity service. SCIM provisioning is not supported — users join by invitation only, regardless of whether they exist in your Entra ID directory. Group-to-role mapping is not automatic: each user must be individually invited and assigned a role in Control Center → Admin → Users. (PKB Gap G3 — confirm this framing with your SME before go-live.)
{% endhint %}

## Step-by-step instructions

### Procedure 1 — Watch the Pre-Lab Demo

{% stepper %}
{% step %}
**View the screencasted SSO navigation demo**

Watch the 3-minute screencast before beginning the hands-on configuration. The demo shows the navigation path to Control Center → Admin → Single Sign-On and the layout of the SSO configuration surface.

**What to do:** Open the pre-lab demo video linked in your course environment and watch it in full before proceeding to Procedure 2.

**Expected output:** You should see the Control Center Admin navigation, the Single Sign-On menu item, and the configuration surface where federation settings are entered.

{% hint style="info" %}
**Tip:** Pay attention to where the Save button appears and whether it applies to the entire SSO configuration or to individual sections. The exact save behavior is subject to SME verification — note what you observe in the demo and compare it to what you see in your sandbox.
{% endhint %}

*Control Center Admin navigation showing Single Sign-On menu item highlighted*
{% endstep %}
{% endstepper %}

### Procedure 2 — Configure Microsoft SSO in Control Center

{% hint style="warning" %}
**Warning:** Have your sandbox credential sheet open before starting this procedure. You will need the tenant ID, client ID, and client secret. Do not attempt to proceed without them — saving an incomplete SSO configuration may produce an error state that requires SME assistance to clear.
{% endhint %}

{% stepper %}
{% step %}
**Navigate to Control Center → Admin → Single Sign-On**

Open Control Center and navigate to `Admin → Single Sign-On`.

**What to do:** From the Platform, open Control Center. In the left navigation, locate the Admin section and select **Single Sign-On**.

**Expected output:** You should see the SSO configuration surface. If SSO has not been configured previously, the "Continue with Microsoft" option will be in a disabled or unconfigured state.

{% hint style="info" %}
**Concept:** Before SSO is configured, users sign in with email and password. The first sign-in uses a temporary password from the invitation email; the user then sets their own password. Enabling SSO adds the "Continue with Microsoft" button as an alternative — it does not remove password sign-in unless your deployment is configured to enforce SSO exclusively.
{% endhint %}
{% endstep %}

{% step %}
**Enable the "Continue with Microsoft" sign-in option**

Activate the Microsoft SSO option on the configuration surface.

**What to do:** Locate the Microsoft / Entra ID option and enable it. This may appear as a toggle, a checkbox, or a provider selection — the exact control is subject to SME verification. Enable it before entering federation settings.

**Expected output:** You should see the federation settings fields become active or visible after enabling the Microsoft option.

{% hint style="warning" %}
**Warning:** The exact UI controls for this step are pending SME verification (PKB Gap G2). If the surface you see differs materially from the Configuration Template in Section 3, stop and contact your SME or deployment team before entering credentials.
{% endhint %}
{% endstep %}

{% step %}
**Enter the sandbox Entra ID federation settings**

Enter the tenant ID, client ID, and client secret from your sandbox credential sheet.

**What to do:** Using the Configuration Template in Section 3 as your reference, enter the following values into the corresponding fields:

* **Tenant ID** — enter the value from your credential sheet
* **Client ID** — enter the value from your credential sheet
* **Client Secret** — enter the value from your credential sheet

Do not edit the Redirect URI if it is auto-populated.

**Expected output:** All three fields should show your entered values. The Redirect URI field, if present, should display a platform-generated URL — do not modify it.

{% hint style="success" %}
**Best practice:** Double-check each value against your credential sheet before saving. A single incorrect character in the tenant ID or client ID will cause the Entra ID authentication flow to fail with a generic error that does not identify which field is wrong.
{% endhint %}
{% endstep %}

{% step %}
**Save the SSO configuration**

Save your changes.

**What to do:** Select the Save button (or equivalent) on the SSO configuration surface.

**Expected output:** You should see a confirmation that the SSO configuration has been saved. There should be no error messages. If you see an error, refer to the Troubleshooting Quick Reference in Section 5.

{% hint style="info" %}
**Checkpoint:** Confirm that the save action completed without error before proceeding to Procedure 3. If you see an error message, do not proceed to the sign-out step — an incomplete configuration will cause the Entra ID flow to fail.
{% endhint %}
{% endstep %}
{% endstepper %}

### Procedure 3 — Validate the Authentication Flow

{% hint style="warning" %}
**Warning:** You are about to sign out of your sandbox session. Make sure you have your sandbox sign-in email address and your Entra ID test credentials available before proceeding. If you cannot complete the Entra ID sign-in after signing out, you may need SME assistance to regain access.
{% endhint %}

{% stepper %}
{% step %}
**Sign out of the sandbox**

Sign out of your current the Platform session.

**What to do:** Locate the sign-out option in the Platform (typically in the user menu or account menu in the top navigation) and sign out completely.

**Expected output:** You should be returned to the Platform sign-in page. You should see the standard sign-in options, which should now include a "Continue with Microsoft" button alongside the email/password option.

*The Platform sign-in page showing "Continue with Microsoft" button alongside password sign-in option*
{% endstep %}

{% step %}
**Sign back in using "Continue with Microsoft"**

Complete the Entra ID authentication flow.

**What to do:** Select **Continue with Microsoft** on the sign-in page. You will be redirected to the Microsoft Entra ID sign-in flow. Sign in using the sandbox Entra ID test account credentials provided by your deployment team.

**Expected output:** The Microsoft authentication window or redirect should open. After completing the Entra ID sign-in, you should be redirected back to the Platform and land on your home screen or dashboard.

{% hint style="warning" %}
**Warning:** If your browser blocks the Microsoft OAuth popup, the authentication flow will not complete. See the Troubleshooting Quick Reference in Section 5 for the fix.
{% endhint %}
{% endstep %}

{% step %}
**Confirm the authentication flow completed successfully**

Verify that you are signed in and the session is active.

**What to do:** Confirm that you have been returned to the Platform and that your session is active. Check that your user name or account information is visible in the platform navigation, indicating a successful authenticated session.

**Expected output:** You should see the Platform in its normal authenticated state — your account name or avatar visible, navigation accessible, no sign-in prompts. The authentication flow is complete.

{% hint style="info" %}
**Checkpoint:** If you reached this step and are viewing the Platform as a signed-in user, the SSO configuration is working correctly. The Entra ID authentication flow completed, and the Platform accepted the token and established your session.
{% endhint %}
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| Symptom                                                                                                                                 | Cause                                                                                       | Fix                                                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"Continue with Microsoft" button does not appear on the sign-in page after saving the SSO configuration**                             | SSO configuration was not saved successfully, or the save did not take effect               | Return to Control Center → Admin → Single Sign-On and confirm the configuration is saved. Check for any error banners on the SSO configuration surface.                                                                            |
| **Microsoft authentication window opens but returns an error (e.g., "Application not found," "Invalid client," or "Tenant not found")** | Incorrect tenant ID or client ID entered in the SSO configuration                           | Return to Control Center → Admin → Single Sign-On, verify the tenant ID and client ID against your credential sheet, correct any errors, and save again.                                                                           |
| **Microsoft authentication window opens but returns an "Invalid client secret" or authentication failure error**                        | Incorrect or expired client secret                                                          | Return to Control Center → Admin → Single Sign-On, re-enter the client secret from your credential sheet (secrets are write-only — you cannot view the saved value), and save again.                                               |
| **Microsoft authentication window opens but returns a redirect URI mismatch error**                                                     | The Redirect URI in the Entra ID app registration does not match the platform-generated URI | Do not edit the Redirect URI in the Platform. Contact your deployment team — the Entra ID app registration must be updated to include the exact Redirect URI shown in the Platform SSO configuration surface.                      |
| **Browser does not open the Microsoft sign-in window (popup blocked)**                                                                  | Browser popup blocker is preventing the Microsoft OAuth popup from opening                  | Allow popups from the Platform domain in your browser settings, then try "Continue with Microsoft" again.                                                                                                                          |
| **Entra ID sign-in completes but the Platform returns an "Access denied" or "User not found" error**                                    | The Entra ID account used to sign in has not been invited to the sandbox                    | SSO does not bypass the invitation requirement. The user must be invited in Control Center → Admin → Users before they can sign in via Entra ID. Contact your administrator to confirm your sandbox account is invited and active. |
| **Entra ID sign-in completes but you are returned to the sign-in page instead of the platform**                                         | Session token was not accepted — possible misconfiguration in the federation settings       | Verify all federation settings (tenant ID, client ID, client secret) are correct. If settings are correct, contact your SME — this may indicate a federation architecture issue requiring investigation.                           |

</details>

## Checkpoints and validation

### Embedded Checkpoints

#### Checkpoint A — SSO configuration saved without error (after Step 5)

* **What to confirm:** The SSO configuration surface shows a saved/confirmed state with no error messages after you selected Save.
* **How to confirm:** Look for a success confirmation (banner, toast notification, or status indicator) on the SSO configuration surface. Verify that the federation settings you entered are still visible and have not been cleared.
* **If confirmation fails:** Do not proceed to Procedure 3. Review the Troubleshooting Quick Reference for save errors. Contact your SME if the error persists.

#### Checkpoint B — "Continue with Microsoft" button visible on sign-in page (after Step 6)

* **What to confirm:** After signing out, the Platform sign-in page displays a "Continue with Microsoft" button alongside the standard email/password option.
* **How to confirm:** Observe the sign-in page immediately after signing out. The button should be visible without any additional action.
* **If confirmation fails:** The SSO configuration may not have saved correctly, or there may be a propagation delay. Wait 30 seconds and refresh the sign-in page. If the button still does not appear, return to Control Center → Admin → Single Sign-On and verify the configuration is saved.

#### Checkpoint C — Authentication flow completes and session is established (after Step 8)

* **What to confirm:** After selecting "Continue with Microsoft" and completing the Entra ID sign-in, you are returned to the Platform in an authenticated session — your account name or avatar is visible and the platform is fully accessible.
* **How to confirm:** Observe the platform state after the Entra ID redirect completes. You should land on your home screen or dashboard without any sign-in prompts.
* **If confirmation fails:** Refer to the Troubleshooting Quick Reference. The most common causes are a popup blocker (Step 7), an uninvited account (the user was not invited before SSO was configured), or a federation settings error.

### Summative Assessment

This lesson has no summative assessment. The validation step (Procedures 3, Steps 6–8) functions as the performance check for this lesson: successful sign-in via Entra ID is the observable success criterion for EO-7.2. The formative knowledge check for EO-7.2 is Knowledge Check 1 in Lesson 4, which follows immediately.

## Solution reference

<details>

<summary>The completed state of your work</summary>

The following represents the completed, correct state of the sandbox after all procedures are successfully executed.

### Completed SSO Configuration

| Setting              | Value                                                                             |
| -------------------- | --------------------------------------------------------------------------------- |
| SSO Provider         | Microsoft (Entra ID)                                                              |
| Sign-in button label | Continue with Microsoft                                                           |
| Tenant ID            | a1b2c3d4-e5f6-7890-abcd-ef1234567890 (replace with your actual sandbox tenant ID) |
| Client ID            | b2c3d4e5-f6a7-8901-bcde-f12345678901 (replace with your actual sandbox client ID) |
| Client Secret        | `[entered — write-only, not displayed after save]`                                |
| Redirect URI         | `[auto-populated by platform — not editable]`                                     |

### Completed Lab Environment State

When all procedures are successfully executed, your sandbox environment will be in the following state:

* **Control Center → Admin → Single Sign-On:** Microsoft SSO is enabled. The tenant ID, client ID, and client secret are saved. The configuration surface shows a confirmed/active state.
* **Sign-in page:** The Platform sign-in page displays a "Continue with Microsoft" button alongside the standard email/password option.
* **Authentication flow:** Selecting "Continue with Microsoft" redirects to the Microsoft Entra ID sign-in flow. After completing Entra ID authentication with the sandbox test account, the user is returned to the Platform in an authenticated session.
* **Session state:** The authenticated session is active. The user's account name or avatar is visible in the platform navigation. The platform is fully accessible.

{% hint style="info" %}
**Concept:** Note that the Platform does not automatically map Entra ID groups to the Platform roles. Each user must be individually invited and assigned a role in Control Center → Admin → Users. SSO changes how an invited user authenticates — it does not change their role or permissions within the Platform. (PKB Gap G3 — confirm this framing with your SME before go-live.)
{% endhint %}

{% hint style="warning" %}
**Warning:** The step-by-step field names and save behavior for the SSO configuration surface in this lab guide are based on the platform's architecture documentation and are pending SME verification (PKB Gap G2). If the fields you encountered in your sandbox differed from what this guide describes, note the discrepancy and report it to your course administrator so the guide can be updated before the next cohort.
{% endhint %}

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/academy/tier-2-core-skills/m07-governance-rbac-ai-gateway-configuration/lab-3-set-up-microsoft-sso-and-entra.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
