hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.18k stars 2.77k forks source link

Restified OpenAPI spec generates only x-hasura-admin-secret header as param #9778

Open iamkhalidbashir opened 1 year ago

iamkhalidbashir commented 1 year ago

According to this:-

https://github.com/hasura/graphql-engine/blob/8aec5057077237635e72de275d17d1a2510d874a/server/src-lib/Hasura/Server/OpenAPI.hs#L446C1-L453

Restified OpenAPI spec has only x-hasura-admin-secret spec, it does not have Authoriztion bearer header output support.

joaoCrulhas commented 10 months ago

Looking forward to this feature too. I want to expose the API, but I'd like to replace x-secret-admin-secret by Authorization to use a Token