# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
