Skip to content

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

Open

Description

@machineghost

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.).

Activity

  1. benjie commented on Apr 16, 2020

    @benjie
    Member

    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.

  2. benjie commented on Apr 16, 2020

    @benjie
    Member

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

  3. 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.[/+] on Apr 17, 2020
  4. transferred this issue fromgraphile/crystalon Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions