Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gotrue, supabase_flutter): Add signInWithSSO method #798

Merged
merged 5 commits into from
Jan 18, 2024
Merged

Conversation

dshukertjr
Copy link
Member

What kind of change does this PR introduce?

Add signInWithSSO() method that can be called like the following:

await supabase.auth.signInWithSSO(
  domain: `company.com`
);

signInWithSSO() works in a similar way as signInWithOAuth() where gotrue-dart has a getSSOSignInUrl() that provides the sign in URL, and supabase_flutter handles the user redirect.

supabase-js implementation here: https://github.com/supabase/gotrue-js/blob/master/src/GoTrueClient.ts#L758

Closes #759

@dshukertjr dshukertjr merged commit 87c1632 into main Jan 18, 2024
9 checks passed
@dshukertjr dshukertjr deleted the feat/sso branch January 18, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for signInWithSSO for Connection to Identity Providers (IdPs) connected via SAML
2 participants