Skip to content

Authorization service to be used with Hasura's "webhook" mode

Notifications You must be signed in to change notification settings

minskylab/hasura-auth-webhook

Repository files navigation

hasura-auth-webhook

Utility server to be used with Hasura projects. It stores the users on its own database. It communicates with Hasura through the webhook setting and returning only the user ID and the user role.

Usage

Hasura instance must point to this server for authentication. This can be done by setting the following environments keys on your hasura instance.

HASURA_GRAPHQL_AUTH_HOOK=<this-server>
HASURA_GRAPHQL_AUTH_HOOK_MODE=POST

You can start the server with

task start

Env Variables

DATABASE_URL

API_PUBLIC_HOSTNAME
API_PUBLIC_PORT
API_INTERNAL_HOSTNAME
API_INTERNAL_PORT

ADMIN_USER_EMAIL
ADMIN_USER_PASSWORD

PROVIDERS_EMAIL_ENABLED
PROVIDERS_EMAIL_JWT_ACCESS_SECRET
PROVIDERS_EMAIL_JWT_REFRESH_SECRET
PROVIDERS_EMAIL_WEBHOOKS_RECOVERY_PASSWORD_EVENT
PROVIDERS_EMAIL_WEBHOOKS_REGISTER_EVENT
PROVIDERS_MAGICLINK_ENABLED
PROVIDERS_MAGICLINK_WEBHOOKS_LOGIN_EVENT

About

Authorization service to be used with Hasura's "webhook" mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •