Hasura auth hook endpoint

GET /api/authn/hasura

The HASURA_GRAPHQL_AUTH_HOOK endpoint for Hasura auth. Use this endpoint to integrate Hasura's webhook authentication flow.

Query parameters

  • resource string Required

    Minimum length is 1.

  • unauthorizedRole string

Responses

  • 200 application/json

    The authenticated user claims in Hasura format. See Hasura docs for more information.

    Hide response attributes Show response attributes object
    • X-Hasura-User-Id string
    • X-Hasura-Role string
  • 400

    Bad Request

  • 401

    Unauthorized

GET /api/authn/hasura
curl \
 --request GET 'https://[tenant_id].logto.app/api/authn/hasura?resource=string'
Response examples (200)
{
  "X-Hasura-User-Id": "string",
  "X-Hasura-Role": "string"
}