mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
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
This commit is contained in:
1 parent
d3d4b95119
commit
04e50cde96
1 file changed
+2
-5
@@ -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/<tenant-id>`
|
||||
|
||||

|
||||
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
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user