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

Add to docs: PostGraphile supports any authentication that Node supports. #214

Open
1 task done
machineghost opened this issue Apr 15, 2020 · 2 comments
Open
1 task done

Comments

@machineghost
Copy link

I'm submitting a ...

  • question

Arguably it's also a "bug in documentation" bug report: your choice:)

It just seems like there should be something, somewhere, which explains whether committing to Postgraphile means committing to local user accounts, or whether it's possible to combine the library with OAuth (eg. Google's, Facebook's, etc.).

@benjie
Copy link
Member

benjie commented Apr 16, 2020

You can use any auth Node supports using the pgSettings function: https://www.graphile.org/postgraphile/usage-library/#pgsettings-function

To see this in action check out Graphile Starter which has GitHub OAuth via Passport.js.

@benjie
Copy link
Member

benjie commented Apr 16, 2020

A PR to the docs to add this in the place you looked for it would be welcome.

@benjie benjie changed the title Does Postgraphile Support OAuth? I Could Find an Answer in the Documentation Add to docs: PostGraphile supports any authentication that Node supports. Apr 17, 2020
@benjie benjie transferred this issue from graphile/crystal Apr 17, 2020
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

No branches or pull requests

2 participants