apps/docs/content/guides/platform/sso/choosing-login-flow.mdx
Not sure which single sign-on (SSO) login flow to enable? This guide maps common enterprise scenarios to the recommended configuration.
<Admonition type="tip">Start with identity provider (IdP)-initiated, the default behavior. It requires no domain configuration, and works for most enterprise use cases. You can enable SP-initiated later if needed.
</Admonition>Do users need to start login at supabase.com?
│
├─ No → Use IdP-initiated only (default) ✅
│ - No domain configuration needed
│ - Simplest setup
│ - Users access via IdP dashboard
│
└─ Yes → Do you need multiple SAML apps per domain?
│
├─ Yes → Use IdP-initiated only ✅
│ - Supports Dev/Staging/Prod under same domain
│ - Each environment is a separate IdP tile
│
└─ No → Enable both flows ✅
- SP-initiated for users who bookmark supabase.com
- IdP-initiated still works from IdP dashboard
- Configure email domains
Your situation:
company.com email addressesRecommended configuration: IdP-initiated only ✅
Why:
company.com)How to configure:
Result: Clean separation of environments with single domain.
Your situation:
Recommended configuration: IdP-initiated only ✅
Why:
How to configure:
Result: One-click SSO login for all users.
Your situation:
Recommended configuration: Enable both flows ✅
Why:
How to configure:
company.com)Result: Users can start login from either Supabase or IdP.
Your situation:
Recommended configuration: Enable both flows ✅
Why:
How to configure:
Migration path:
Your situation:
parent.com) and subsidiaries (sub1.com, sub2.com)Recommended configuration: SP-initiated with multiple domains ✅
Why:
How to configure:
parent.com, sub1.com, sub2.comResult: Users with any configured domain can access organization.
Your situation:
Recommended configuration: Per-customer decision (typically IdP-initiated)
Why:
How to configure:
Result: Flexible, customer-specific SSO configurations.
Your situation:
Recommended configuration: Both flows with careful planning ⚠️
Why:
How to configure:
SSO and non-SSO accounts with the same email are treated as separate accounts. An employee with [email protected] will have two accounts if they:
Communicate clearly which authentication method each user should use.
</Admonition>Result: Mixed authentication with clear separation.
| Use Case | IdP-initiated | SP-initiated | Domains Required |
|---|---|---|---|
| Multiple environments (Dev/Staging/Prod) | ✅ Only | ❌ Off | No |
| Single production org | ✅ Only | ❌ Off | No |
| Users bookmark supabase.com | ✅ Yes | ✅ Yes | Yes |
| Migrating from passwords | ✅ Yes | ✅ Yes | Yes |
| Multiple email domains | ✅ Yes | ✅ Yes | Yes (all domains) |
| Customer-specific SSO (SaaS) | ✅ Default | Optional | Per customer |
| Mixed authentication | ✅ Yes | ✅ Yes | Yes |
After choosing your login flow, thoroughly test:
See our comprehensive SSO Testing and Best Practices guide for detailed testing procedures.
You can safely change login flow configuration at any time:
No migration required - Changes take effect immediately.
If you're uncertain which configuration to use:
If you need help choosing the right configuration for your organization, contact Supabase support with details about your use case. We're happy to provide personalized recommendations.
</Admonition>