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

# Microsoft Azure

> Integrate Azure Single Sign-On with Nile Auth

**1. Setup Azure Active Directory (Azure AD) Portal**

1. Create an [Azure AD](https://portal.azure.com/) account if you don’t have one.
2. Navigate to the [Azure Portal](https://portal.azure.com/) and go to **Azure Active Directory** > **App registrations**.
3. Click **New registration**, enter a name for your app, and set the redirect URI to your application handling the Nile Auth requests.
4. Obtain the **Application (client) ID**, **Directory (tenant) ID**, and create a **Client Secret** under **Certificates & secrets**.

**2. Save Client ID and Client Secret in Nile**

Save the **Client ID**, **Client Secret**, and **Tenant ID** to your database at `console.thenile.dev` under Azure in **Tenants & Users -> Configuration**\\

![Azure configuration on console.thenile.dev](https://mintlify.s3.us-west-1.amazonaws.com/nile/images/singlesignon/azure.png)

**3. Add the `Azure` button to your login page**

The button will redirect the user to Azure AD for authentication. Upon successful authentication, the user will be redirected back to your application.

```jsx theme={null}
import { AzureSignInButton } from '@niledatabase/react';

function App() {
  return (
    <div>
      <AzureSignInButton callbackUrl="/" tenantId="YOUR_TENANT_ID" />
    </div>
  );
}
```

## Related Topics

* [OAuth Concepts](https://thenile.dev/docs/auth/concepts/oauth.md)
* [User Management](https://thenile.dev/docs/auth/concepts/users.md)
* [Other SSO Providers](https://thenile.dev/docs/auth/singlesignon/google.md)


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