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
.
Responses
-
• 200 application/json
The authenticated user claims in Hasura format. See Hasura docs for more information.
-
• 400
Bad Request
-
• 401
Unauthorized
GET /api/authn/hasura
curl \
-X GET https://[tenant_id].logto.app/api/authn/hasura?resource=string
Response examples (200)
{
"X-Hasura-User-Id": "string",
"X-Hasura-Role": "string"
}