> For the complete documentation index, see [llms.txt](https://docs.labii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labii.com/admin-guide/single-sign-on/microsoft-azure.md).

# Microsoft Azure

## Overview

Applications created with Microsoft Azure support single sign-on and can be used to sign in to Labii.

{% embed url="<https://youtu.be/FIdbUbepuwE>" %}

## Setup Labii SSO with OneLogin

#### To use Microsoft Azure as your IdP to connect with Labii:

1. Create an application. Please make sure to select **Non-gallery**.
2. Once created, go to the application and select **Single sign-on** on the left panel. Click **SAML** as the SSO method.
3. Basic SAML Configuration:
   1. Identifier (Entity ID) -> Copy and paste **Entity Id** from Labii
   2. Reply URL (Assertion Consumer Service URL) -> Copy and paste **Acs Url** from Labii
4. Update the **Attribution Map** in Labii:\
   `{`

   `"email": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",`

   `"username": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",`

   `"last_name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",`

   `"first_name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"`

   `}`
5. Update **Metadata Auto Conf Url** in Labii with **App Federation Metadata Url** from Azure\
   or, update the **Metadata Xml** in Labii with the content from **Federation Metadata XML** downloaded at Azure
6. Update **Idp Logout Url** in Labii with **Logout URL** from Azure
7. For the **Idp Login Url** in Labii, the **Login URL** from Azure DOES NOT work. Please goes to Properties -> Copy the User access URL and update the **Idp Login Url** in Labii with the **User access URL.**


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.labii.com/admin-guide/single-sign-on/microsoft-azure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
