Escape-Technologies / graphman

Quikly scaffold a postman collection for a GraphQL API. Compatible with Postman & Insomnia.
MIT License
240 stars 12 forks source link

Add custom headers for authorization #51

Closed kumaranvram closed 1 year ago

kumaranvram commented 1 year ago

Description

Add support for custom auth headers

- This is prevent us from hard coding the header in the code.

- Now the headers can be sent as "--auth 'X-Auth-Token:
  i-am-a-token'"

Checklist:

nohehf commented 1 year ago

Hey, @kumaranvram thanks for the PR! If I understand right the goal here is to pass full headers rather than only the Authorization one. It's a great feature I agree (and I should have designed it this way at the beginning now that I think about it). Why did you close the PR?

nohehf commented 1 year ago

Just released v1.2.1 which introduces "-H" flag to pass headers & fixed some bugs I noticed. See the release note. I hope this fulfills your expectations!