DEV Community

Discussion on: Deploying Hasura on AWS with Fargate, RDS and Terraform

Collapse
 
tae profile image
Tae Kim • Edited

Hi Gordon, thanks for posting this. I noticed you used an ALB. Were you able to secure the Hasura endpoint using Cognito with ALBs? I started down this path and realized that the ID Token's issued via ALB's have a "ES256" algorithm, which Hasura does not support. Were you able to find any workarounds for this scenario?

Collapse
 
tae profile image
Tae Kim • Edited

Answering my own question - I managed to get this working via an Auth Webhook. I created a custom endpoint that validates the JWT (using the jwt library) and tells Hasura whether that user is authenticated.

hasura.io/docs/latest/graphql/core...