https://github.com/minskylab/hasura-auth-webhook
Authorization service to be used with Hasura's "webhook" mode
https://github.com/minskylab/hasura-auth-webhook
Last synced: 4 months ago
JSON representation
Authorization service to be used with Hasura's "webhook" mode
- Host: GitHub
- URL: https://github.com/minskylab/hasura-auth-webhook
- Owner: minskylab
- Created: 2021-09-30T06:03:18.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-02-10T11:48:09.000Z (5 months ago)
- Last Synced: 2026-02-10T16:22:32.512Z (5 months ago)
- Language: Go
- Size: 255 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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=
HASURA_GRAPHQL_AUTH_HOOK_MODE=POST
```
You can start the server with
```bash
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
```