Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update auth-azure.mdx

aar2dee22f1c28206fb8
diff --git a/apps/docs/pages/guides/auth/social-login/auth-azure.mdx b/apps/docs/pages/guides/auth/social-login/auth-azure.mdx
index 2b7b61b97d8..15df20c3a0f 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-azure.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-azure.mdx
@@ -53,11 +53,12 @@ This will serve as the `client_secret` when you make API calls to authenticate t
![Obtain the client secret](/docs/img/guides/auth-azure/azure-client-secret.png)
-## Obtain the Tenant URL
+## Obtain the Tenant URL (Optional)
+The default tenant url is `https://login.microsoftonline.com/common`. This will allow users with personal Azure accounts as well as with Azure work accounts, other than that of your own organization, to sign in to your app. This is set by default in Supabase and you can leave the `Azure Tenant URL` field blank in your provider settings.
-This will allow your users to use your custom Azure login page when logging in.
-
-Set the tenant URL in your Supabase Azure Provider settings to `https://login.microsoftonline.com/common`
+If you want to allow users from **your Azure organization only** to be able to log in to you app
+- Select the Directory (Tenant) ID value
+- Set the tenant URL in your Supabase Azure Provider settings to `https://login.microsoftonline.com/<tenant-id>`
## Add login code to your client app
@@ -74,7 +75,7 @@ async function signInWithAzure() {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'azure',
options: {
- scopes: 'email', // this is important
+ scopes: 'email',
},
})
}