Use Nhost to start using Hasura Auth in seconds.
git clone https://github.com/nhost/hasura-auth.git
cd hasura-auth
cp .env.example .env
docker-compose -f docker-compose-example.yaml up
Read our configuration guide to customise the Hasura Auth settings.
The JWT tokens can be signed with either a symmetric key based on HMAC-SHA
or with asymmetric keys based on RSA
. To configure the JWT signing method, set the environment variable HASURA_GRAPHQL_JWT_SECRET
which should follow the same format as Hasura with a few considerations:
HS
and RS
algorithms are supported.RS
algorithm, the public key should be in PEM format.RS
algorithm, the private key should be in PKCS#8 format inside an extra field signing_key
.RS
algorithm, an additional field kid
can be added to specify the key id in the JWK Set.When using asymmetric keys, you can get the JWK Set from the endpoing .well-known/jwks.json
.
Contributions and issues are welcome. Please have a look at the developer's guide if you want to prepare a pull request.
Feel free to check the issues page.
Give a âď¸ if this project helped you!
This project is MIT licensed.