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

# Microsoft Entra ID SSO

> Configure single sign-on (SSO) for Artie using a Microsoft Entra ID (Azure AD) app registration.

> **Note:**
>
> You need to be your company's Entra ID (Azure AD) admin **and** an Artie admin to complete this setup.

**What you'll need before starting:**

* Access to the [Azure portal](https://portal.azure.com) with permission to create app registrations
* Admin access to your Artie account (Settings → General)

## Set up Entra ID

**Step 1: Create an app registration**

1. Sign in to the [Azure portal](https://portal.azure.com)
2. Go to **Microsoft Entra ID → App registrations**
3. Click **New registration**
4. Fill in the form:
   * **Name:** Artie
   * **Supported account types:** Accounts in this organizational directory only *(single tenant)*
   * **Redirect URI:** select **Web** and enter `https://api.artie.com/sso/oidc/callback`
5. Click **Register**

<img src="/docs/assets/dashboard/sso/entra_new_application.png" alt="New registration form with Name, tenant type, and redirect URI filled in" />

**Step 2: Create a client secret**

1. In your new app registration, go to **Certificates & secrets**
2. Click **New client secret**
3. Give it a description (e.g. `Artie SSO`) and choose an expiry
4. Click **Add**
5. **Copy the secret value immediately.** It will not be shown again.

<img src="/docs/assets/dashboard/sso/entra_client_secret.png" alt="Certificates & secrets page with the client secret value highlighted" />

**Step 3: Retrieve your credentials**

From the app registration **Overview** page, copy:

* **Application (client) ID** (this is your Client ID)
* **Directory (tenant) ID** (you'll use this to construct the Issuer URL below)

Your **Issuer URL** (OIDC domain) follows this format:

```
https://login.microsoftonline.com/{your-tenant-id}/v2.0
```

Replace `{your-tenant-id}` with the Directory (tenant) ID you just copied.

<img src="/docs/assets/dashboard/sso/entra_overview.png" alt="App registration overview page with Application (client) ID and Directory (tenant) ID highlighted" />

## Configure SSO in Artie

1. Go to [Settings → General](https://app.artie.com/settings?tab=company) in Artie
2. Click **Configure SSO**
3. Enter your credentials:
   * **OIDC domain (Issuer URL):** `https://login.microsoftonline.com/{your-tenant-id}/v2.0`
   * **Client ID:** the Application (client) ID from your app registration
   * **Client secret:** the secret value you copied
4. Click **Save**

Users can now log in at [app.artie.com/login/sso](https://app.artie.com/login/sso).

## Advanced

**What redirect URI do I use?**

Use `https://api.artie.com/sso/oidc/callback`. Every provider you set up with **Configure SSO** uses this URI, Okta included. Only workspaces that set up Okta SSO before OIDC support use `/sso/okta/callback`.

**Single-tenant vs multi-tenant**

We recommend registering as **single-tenant** (accounts in this organizational directory only). This ensures only users within your Entra ID tenant can authenticate into your Artie account.

**What is the Issuer URL?**

The Issuer URL is the base URL for the OIDC discovery document for your tenant. For Entra ID it is always `https://login.microsoftonline.com/{tenant-id}/v2.0`. You can verify it by appending `/.well-known/openid-configuration`. The URL should return a JSON document.

**Client secret expiry**

Entra ID client secrets expire. When your secret expires, SSO will stop working until you create a new secret and update it in Artie's authentication settings. We recommend setting a calendar reminder before the expiry date.