mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## What kind of change does this PR introduce? Docs update. Aligns documentation and style guides with the **Sign in / Sign out / Sign up** platform standard. Closes DOCS-1328. Related to [#49874](https://github.com/supabase/supabase/pull/49874). ## What is the current behavior? Docs style guides prefer _login_ / _log in_. Guide prose uses mixed login and sign in wording. ## What is the new behavior? - [WORD_LIST.md](apps/docs/WORD_LIST.md) and [copywriting.mdx](apps/design-system/content/docs/copywriting.mdx) document the sign in standard - Design-system auth examples updated - Guide prose and API reference spec descriptions updated ### Terminology **Standard:** Use _sign in_, _sign out_, and _sign up_ as verbs. Use _sign-in_, _sign-out_, and _sign-up_ as nouns and adjectives. Match Studio UI labels (**Sign in**, **Sign out**, **Sign up**). **Preserved intentionally:** | Category | Keep as-is | Example | | -------- | ---------- | ------- | | Feature name | social login | `/social-login`, `features.mdx` heading, OAuth provider section | | URL slugs | `login` in paths | `/phone-login`, `/login-flows`, `choosing-login-flow` | | CLI | `supabase login` / `supabase logout` | Reference ids `supabase-login` / `supabase-logout`; executable commands unchanged | | SDK methods | `logout()` | Kotlin/Swift method names in API reference titles and examples | | Third-party UI | Provider product labels | Facebook Login, Kakao Login, portal **Login** buttons | | Postgres | Database terminology | login privileges, login credentials, login via role | | Audit/logging | Log prose | "Generates the following **log** in the Postgres Logs" | | Code and routes | Paths and filenames | `app/login/`, `Login.tsx`, `demos/android-login` | | External URLs | Third-party login pages | `dash.cloudflare.com/login`, `console.neon.tech/login`, `vercel.com/login` | | API identifiers | Event and field names | Audit actions `login`/`logout`, `should_logout_user` | ## To test - Run `pnpm lint:mdx` in `apps/docs` - Spot-check `features.mdx`, `social-login.mdx`, and a provider guide (e.g. Facebook, Kakao) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Standardized authentication terminology across guides, reference material, CLI documentation, and copywriting guidance using “sign in,” “sign out,” and “sign up.” * Updated authentication instructions, headings, link text, examples, and SSO guidance for clearer, more consistent wording. * Corrected related grammar, spelling, hyphenation, and documentation links while preserving established product names and implementation commands. * **Style** * Refined code examples with consistent import ordering and spacing. * **Examples** * Updated authentication button and menu labels to “Sign in” and “Sign out.” <!-- end of auto-generated comment: release notes by coderabbit.ai -->
172 lines
7.9 KiB
Plaintext
172 lines
7.9 KiB
Plaintext
---
|
|
title: 'Set Up SSO with Azure AD'
|
|
description: 'Configure single sign-on with Azure AD (Microsoft Entra).'
|
|
---
|
|
|
|
<Admonition type="note">
|
|
|
|
This feature is only available on the [Team and Enterprise Plans](/pricing). If you are an existing Team or Enterprise Plan customer, continue with the setup below.
|
|
|
|
</Admonition>
|
|
|
|
<Admonition type="note">
|
|
|
|
Looking for docs on how to add Single Sign-On support in your Supabase project? Head on over to [Single Sign-On with SAML 2.0 for Projects](/docs/guides/auth/enterprise-sso/auth-sso-saml).
|
|
|
|
</Admonition>
|
|
|
|
Supabase supports single sign-on (SSO) using Microsoft Azure AD.
|
|
|
|
## Step 1: Add and register an Enterprise application [#add-and-register-enterprise-application]
|
|
|
|
Open up the [Azure Active Directory](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview) dashboard for your Azure account.
|
|
|
|
Click the _Add_ button then _Enterprise application_.
|
|
|
|

|
|
|
|
## Step 2: Choose to create your own application [#create-application]
|
|
|
|
You'll be using the custom enterprise application setup for Supabase.
|
|
|
|

|
|
|
|
## Step 3: Fill in application details [#add-application-details]
|
|
|
|
In the modal titled _Create your own application_, enter a display name for Supabase. This is the name your Azure AD users will see when signing in to Supabase from Azure. `Supabase` works in most cases.
|
|
|
|
Make sure to choose the third option: _Integrate any other application you
|
|
don't find in the gallery (Non-gallery)_.
|
|
|
|

|
|
|
|
## Step 4: Set up single sign-on [#set-up-single-sign-on]
|
|
|
|
Before you get to assigning users and groups, which would allow accounts in Azure AD to access Supabase, you need to configure the SAML details that allows Supabase to accept sign in requests from Azure AD.
|
|
|
|

|
|
|
|
## Step 5: Select SAML single sign-on method [#saml-sso]
|
|
|
|
Supabase only supports the SAML 2.0 protocol for Single Sign-On, which is an industry standard.
|
|
|
|

|
|
|
|
## Step 6: Upload SAML-based sign-on metadata file [#upload-saml-metadata]
|
|
|
|
First you need to download Supabase's SAML metadata file. Click the button below to initiate a download of the file.
|
|
|
|
<a href="https://alt.supabase.io/auth/v1/sso/saml/metadata?download=true">
|
|
<Button size="large" icon={<IconArrowDown />}>
|
|
Download Supabase SAML Metadata File
|
|
</Button>
|
|
</a>
|
|
|
|
Alternatively, visit this page to initiate a download: `https://alt.supabase.io/auth/v1/sso/saml/metadata?download=true`
|
|
|
|
Click on the _Upload metadata file_ option in the toolbar and select the file you downloaded.
|
|
|
|

|
|
|
|
All of the correct information should automatically populate the _Basic SAML Configuration_ screen as shown.
|
|
|
|

|
|
|
|
**Make sure you input these additional settings.**
|
|
|
|
| Setting | Value |
|
|
| ----------- | -------------------------------------------- |
|
|
| Sign on URL | `https://supabase.com/dashboard/sign-in-sso` |
|
|
| Relay State | `https://supabase.com/dashboard` |
|
|
|
|
Finally, click the _Save_ button to save the configuration.
|
|
|
|
## Step 7: Obtain metadata URL [#idp-metadata-url]
|
|
|
|
Save the link under **App Federation Metadata URL** in \*section 3 **SAML Certificates\***. You will need to enter this URL later in [Step 10](#dashboard-configure-metadata).
|
|
|
|

|
|
|
|
## Step 8: Enable SSO in the Dashboard [#dashboard-enable-sso]
|
|
|
|
1. Visit the [SSO tab](/dashboard/org/_/sso) under the Organization Settings page. 
|
|
|
|
2. Toggle **Enable Single Sign-On** to begin configuration. Once enabled, the configuration form appears. 
|
|
|
|
## Step 9: Configure domains [#dashboard-configure-domain]
|
|
|
|
Enter one or more domains associated with your users email addresses (e.g., `supabase.com`).
|
|
These domains determine which users are eligible to sign in via SSO.
|
|
|
|

|
|
|
|
If your organization uses more than one email domain - for example, `supabase.com` for staff and `supabase.io` for contractors - you can add multiple domains here. All listed domains will be authorized for SSO sign-in.
|
|
|
|

|
|
|
|
<Admonition type="note">
|
|
|
|
We do not permit use of public domains like `gmail.com`, `yahoo.com`.
|
|
|
|
</Admonition>
|
|
|
|
<Admonition type="note">
|
|
|
|
You can configure each SSO provider with different email domains. For multi-environment setups (Dev/Staging/Prod), we recommend using IdP-initiated flow with multiple SAML apps under the same domain rather than domain-based routing. For more details, see the [Multiple SSO Providers guide](/docs/guides/platform/sso/multiple-providers).
|
|
|
|
</Admonition>
|
|
|
|
## Step 10: Configure metadata [#dashboard-configure-metadata]
|
|
|
|
Enter the metadata URL you obtained from [Step 7](#idp-metadata-url) into the Metadata URL field:
|
|
|
|

|
|
|
|
## Step 11: Configure attribute mapping [#dashboard-configure-attributes]
|
|
|
|
Fill out the Attribute Mapping section using the **Azure** preset.
|
|
|
|

|
|
|
|
## Step 12: Join organization on sign-up (optional) [#dashboard-configure-autojoin]
|
|
|
|
By default this setting is disabled, users signing in via SSO will not be added to your organization automatically.
|
|
|
|

|
|
|
|
Toggle this on if you want SSO-authenticated users to be **automatically added to your organization** when they sign in via SSO. Auto-join applies on **every sign-in**, not only on first sign-up - this makes it safe to test SSO before enabling this feature.
|
|
|
|

|
|
|
|
When auto-join is enabled, you can choose the **default role** for new users:
|
|
|
|

|
|
|
|
We recommend choosing **Developer** as the default role (principle of least privilege) and promoting users individually as needed.
|
|
|
|
<Admonition type="note">
|
|
|
|
Read [the Access Control documentation](/docs/guides/platform/access-control) for details about each role.
|
|
|
|
</Admonition>
|
|
|
|
## Step 13: Save changes [#dashboard-configure-save]
|
|
|
|
When you click **Save changes**, your new SSO configuration is applied immediately. From that moment, any user with an email address matching one of your configured domains who visits your organization's sign-in URL will be routed through the SSO flow.
|
|
|
|
## Step 14: Test your SSO configuration
|
|
|
|
Before rolling out SSO to your organization, we strongly recommend thorough testing. Read [the SSO Testing and Best Practices guide](/docs/guides/platform/sso/testing-best-practices) for:
|
|
|
|
- Step-by-step testing instructions
|
|
- How to verify auto-join works correctly
|
|
- Common issues and troubleshooting
|
|
- Security best practices
|
|
- Pre-launch checklist
|
|
|
|
<Admonition type="note" title="Testing in Azure sandbox">
|
|
|
|
If your organization has an Azure sandbox or test tenant, consider testing your SSO configuration there first before applying to production.
|
|
|
|
</Admonition>
|