hasura / hasura/graphql-engine

Custom header use to authentication with JWT

Open
#7,442 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Hi,

I'm trying to use a custom header to say Hasura to get the JWT from there, not only the Authorization or Cookie header. Why don't have support for custom headers to access JWT and give more flexibility?

`Fatal Error:- Environment variable HASURA_GRAPHQL_JWT_SECRET: Error in $.header: expected 'type' is 'Authorization' or 'Cookie'`

Contributor guide

Open the contributing guide

Research direction

Start with the HASURA_GRAPHQL_JWT_SECRET configuration and the reported validation error, then trace where the header type is restricted to Authorization or Cookie. Done means a documented custom header can be configured as the JWT source and authentication works through it.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.