graphman
graphman copied to clipboard
feat: support collection scoped variables & headers
GraphMan should be able to take auth and headers as parameters. Those parameters as well as URLs should be sent in the environment variables. The process could be to load .env files to generate different environment, or via the CLI.
yes! being able to include authentication headers would be fantastic, all our graphql endpoints are behind authentication checks
What would you be interested in / what auth type do you use (tokens, API keys...) ?
Thanks for considering this feature! We use JWT tokens for authentication so honestly, being able to pass key:value pairs in the header would work well for our workflow.
Using a .env for dev/staging/prod environments to populate the header value would be fantastic.
Also, being able to generate a key:value pair (Authorization:Bearer
Hey @swangy, while full env support isn't available right now, bearer token auth is now supported, see #16. You can use it with: deno run [...] <URL> --auth=AUTHORIZATION_TOKEN
!
This is fantastic thanks very much!
you accepting PRs? looking over deno to see what i can contribute
@swangy
We accept PR, feel free to contribute :)