The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add `signInWithSSO` to Flutter docs. (#20511)
Tyler90e3289c6be9
diff --git a/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx b/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdxindex f22da4f3114..c4b36288765 100644--- a/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx+++ b/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx@@ -204,6 +204,17 @@ supabase.auth.signInWithSSO({Calling [`signInWithSSO`](/docs/reference/javascript/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead.+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+await supabase.auth.signInWithSSO(+ domain: 'company.com',+);+```++Calling [`signInWithSSO`](/docs/reference/dart/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead.+</TabPanel><TabPanel id="kotlin" label="Kotlin">diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.ymlindex c70000e2c85..9201308591e 100644--- a/apps/docs/spec/supabase_dart_v2.yml+++ b/apps/docs/spec/supabase_dart_v2.yml@@ -305,6 +305,33 @@ functions:final Session? session = supabase.auth.currentSession;final String? oAuthToken = session?.providerToken;```+ - id: sign-in-with-sso+ title: 'signInWithSSO()'+ notes: |+ - Before you can call this method you need to [establish a connection](/docs/guides/auth/sso/auth-sso-saml#managing-saml-20-connections) to an identity provider. Use the [CLI commands](/docs/reference/cli/supabase-sso) to do this.+ - If you've associated an email domain to the identity provider, you can use the `domain` property to start a sign-in flow.+ - In case you need to use a different way to start the authentication flow with an identity provider, you can use the `providerId` property. For example:+ - Mapping specific user email addresses with an identity provider.+ - Using different hints to identify the correct identity provider, like a company-specific page, IP address or other tracking information.+ examples:+ - id: sign-in-with-domain+ name: Sign in with email domain+ isSpotlight: true+ code: |+ ```dart+ await supabase.auth.signInWithSSO(+ domain: 'company.com',+ );+ ```+ - id: sign-in-with-provider-uuid+ name: Sign in with provider UUID+ isSpotlight: true+ code: |+ ```dart+ await supabase.auth.signInWithSSO(+ providerId: '21648a9d-8d5a-4555-a9d1-d6375dc14e92',+ );+ ```- id: sign-outtitle: 'signOut()'description: |