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

# Azure auth code flow | Collate Deployment Guide

> Configure Azure Authorization Code Flow for a self-hosted deployment, with server-side token exchange and links to Docker, Kubernetes, and bare metal setup.

# Auth Code Flow

### Step 1: App Registrations

* Provide an Application Name for registration.
* Provide a redirect URL as a Auth Code Flow.
* Click on Register.

![create-app](https://mintcdn.com/collatedocs/pr-RC_TieE62PGno/public/images/deployment/security/azure/create-web-registration.png?fit=max\&auto=format\&n=pr-RC_TieE62PGno\&q=85\&s=a3bb95c607c450f89333933556fbf67c)

### Step 2: Where to Find the Credentials

* The `Client ID` and the `Tenant ID` are displayed in the Overview section of the registered application.

![create-app](https://mintcdn.com/collatedocs/pr-RC_TieE62PGno/public/images/deployment/security/azure/web-client-secret.png?fit=max\&auto=format\&n=pr-RC_TieE62PGno\&q=85\&s=f50ae2faef89430f7064c1518fa53faa)

* When passing the details for `authority`, the `Tenant ID` is added to the URL as shown in the example
  below. `https://login.microsoftonline.com/TenantID`

```commandline theme={null}
"authority": "https://login.microsoftonline.com/c11234b7c-b1b2-9854-0mn1-56abh3dea295"
```

> [!NOTE]
>
> For Azure authorization code flow with MCP OAuth, include `offline_access` in the OIDC scope so Azure AD can issue refresh tokens.
> Use `openid email profile offline_access`.

## Configure Ingestion

Once your server security is set, it's time to review the ingestion configuration. Our bots support JWT tokens
to authenticate to the server when sending requests.

Find more information on [**Enabling JWT Tokens**](https://docs.getcollate.io/deployment/security/enable-jwt-tokens) and [**JWT Troubleshooting**](https://docs.getcollate.io/deployment/security/jwt-troubleshooting) to ensure seamless authentication.

> [card] [Docker](https://docs.getcollate.io/deployment/security/azure/docker)
>
> Configure Azure SSO for Docker deployment.

> [card] [Kubernetes](https://docs.getcollate.io/deployment/security/azure/kubernetes)
>
> Configure Azure SSO for Kubernetes deployment.

> [card] [Bare Metal](https://docs.getcollate.io/deployment/security/azure/bare-metal)
>
> Configure Azure SSO for Bare Metal deployment.

> [card] [Azure](https://docs.getcollate.io/deployment/security/azure)
>
> Go to Azure Configuration


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.