From 04e50cde967e12178ecf5377257515432a6bcbc3 Mon Sep 17 00:00:00 2001 From: aar2dee2 <85004512+aar2dee2@users.noreply.github.com> Date: Sat, 2 Sep 2023 17:58:50 +0530 Subject: [PATCH] Fix tenant URL in Azure settings Fixes auth issues reported in https://github.com/supabase/gotrue/pull/54 See comment: https://github.com/supabase/gotrue/pull/54#issuecomment-1702991208 --- apps/docs/pages/guides/auth/social-login/auth-azure.mdx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 bf2e2ed469f..2b7b61b97d8 100644 --- a/apps/docs/pages/guides/auth/social-login/auth-azure.mdx +++ b/apps/docs/pages/guides/auth/social-login/auth-azure.mdx @@ -57,10 +57,7 @@ This will serve as the `client_secret` when you make API calls to authenticate t This will allow your users to use your custom Azure login page when logging in. -- Select the Directory (Tenant) ID value. -- The Azure Tenant URL should look like this: `https://login.microsoftonline.com/` - -![Obtain the tenant url](/docs/img/guides/auth-azure/azure-tenant-url.png) +Set the tenant URL in your Supabase Azure Provider settings to `https://login.microsoftonline.com/common` ## Add login code to your client app @@ -77,7 +74,7 @@ async function signInWithAzure() { const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'azure', options: { - scopes: 'email', + scopes: 'email', // this is important }, }) }