这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/graphql/manual/guides/integrations/aws-cognito.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. _aws_cognito:

Using AWS Cognito for authentication
====================================

.. contents:: Table of contents
:backlinks: none
:depth: 1
:local:

Cognito can be used in both :doc:`JWT mode <../../auth/authentication/jwt>` and :doc:`webhook mode <../../auth/authentication/webhook>`.

- For JWT, `this blog post <https://blog.hasura.io/hasura-authentication-explained/#cognito>`__ contains detailed instructions.
- For webhook, a thin wrapper/webhook that implements `this spec <https://docs.hasura.io/1.0/graphql/manual/auth/authentication/webhook.html#spec-for-the-webhook>`__ needs to be written. Boilerplates to write this webhook can be found `here <https://github.com/hasura/graphql-engine/tree/master/community/boilerplates/auth-webhooks>`__.
2 changes: 2 additions & 0 deletions docs/graphql/manual/guides/integrations/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Guides: Integration/migration tutorials
:local:

- :doc:`auth0-jwt`
- :doc:`aws-cognito`
- :doc:`apollo-subscriptions`
- `Blog: Move from firebase to realtime GraphQL on Postgres <https://blog.hasura.io/firebase2graphql-moving-from-firebase-to-realtime-graphql-on-postgres-4d36cb7f4eaf>`__
- `Blog: Create a Gatsby site using GraphQL on Postgres <https://blog.hasura.io/create-gatsby-sites-using-graphql-on-postgres-603b5dd1e516>`__
Expand All @@ -19,4 +20,5 @@ Guides: Integration/migration tutorials
:hidden:

Auth0 JWT Integration <auth0-jwt>
Using AWS Cognito for authentication <aws-cognito>
Subscriptions using apollo-client <apollo-subscriptions>