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

Support Supabase OAuth and Magic Link auth #1669

Merged

Conversation

dthyresson
Copy link
Contributor

@dthyresson dthyresson commented Jan 26, 2021

With Supabase 1.0, it supports OAuth via 'bitbucket' | 'github' | 'gitlab' | 'google' | 'azure' as well as Magic Link passwordless email auth.

resolves #1538
resolves #1537
resolves #1246
addresses #1479

See: https://supabase.io/docs/client/auth-signin

Note that Supabase will support Azure as well, they just have not undated their docs or admin interface to configure the provider.

Authentication doc updates are here: https://github.com/redwoodjs/redwoodjs.com/pull/531

And can be previewed: https://deploy-preview-531--redwoodjs.netlify.app/docs/authentication#supabase

Updates to the playground auth is: redwoodjs/playground-auth#19

Note: this PR also added the restoreAuthState to Netlify as this helped with restoring state after a email magiclink invite signup for both Supabase and Netlify (both GoTrue based).

@dthyresson dthyresson marked this pull request as draft January 26, 2021 09:42
@github-actions
Copy link

github-actions bot commented Jan 26, 2021

@dthyresson dthyresson linked an issue Jan 26, 2021 that may be closed by this pull request
@peterp
Copy link
Contributor

peterp commented Jan 27, 2021

Looks good to me, I left a few notes about tightening it up with explicitly requiring a provider for magic link instead of trying to figure out if it's magic link based on the props.

@dthyresson
Copy link
Contributor Author

@peterp Thanks much for the review! I have submitted the requested changes -- apart from adding "magiclink" as a provider option. See comment note above for rationale.

@thedavidprice thedavidprice merged commit 7176d2e into redwoodjs:main Jan 27, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Feb 1, 2021
…ender-p1

* 'main' of github.com:redwoodjs/redwood: (26 commits)
  Updating default auth request for acquireTokenSilent
  add missing env changes to template (redwoodjs#1699)
  Fix typo in Private Routes
  Add router as dep to testing.
  Add auth package to deps.
  Fixes scaffolded test template (redwoodjs#1690)
  add new release steps (redwoodjs#1686)
  update and fix package builds to match lerna build (redwoodjs#1687)
  Catch everything instead of using the name.
  Make test-tutorial use template directory.
  redwood-tools: ignore crwa template
  Remove exports for RedwoodApolloProvider, use sub-folder.
  Add build:js script.
  Updating getToken flow
  Support Supabase OAuth and Magic Link auth (redwoodjs#1669)
  Ignore linting template folder in create-redwood-app (redwoodjs#1674)
  Add a note about publishing.
  Remove yarn.lock from template.
  Test bumping packages. Nice!
  Remove yarn install from script.
  ...
@dthyresson dthyresson deleted the dt-supabase-oath-third-party-1537 branch December 23, 2021 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants