hasura / hasura/graphql-engine
Allow JWT from multiple locations
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Is your proposal related to a problem?
To add a little more security to my web applications I'd like to make my JWT's http only cookies. This is currently possible by setting
https://hasura.io/docs/latest/auth/authentication/jwt/#header
However, doing so would break all the other apps (mobile apps) currently using Authorization Headers.
### Describe the solution you'd like
As described here, I'd like to be able to set an array of authentication options instead of a single object.
https://hasura.io/docs/latest/auth/authentication/jwt/#header
header: [
{"type": "Authorization"}
{"type": "Cookie", "name": "cookie_name"}
]
More amazingly would be to also allow {"type": "webhook", "url": "http://hasurarocks.io"}
This would likely require additional refactoring
### Describe alternatives you've considered
- Using a webhook
- standing up a second instance of hasura.
Contributor guide
Assessment
This issue has not been assessed yet.