graphdoc
graphdoc copied to clipboard
What if my endpoint requires an oAuth token?
Is there any way to pass in an oAuth token?
Same here, i get a 401 when accessing (unauthenticated): graphdoc -e https://vf-api-uat.plantvarieties.eu/graphql -o ./doc/schema I need to pass an x-auth token in the header to browse/fetch the endpoint/schema. Is this good practice (to auth GraphQL schema) ? Anyone has any idea how to browse GraphQL endpoints that require authN ?
The Project Readme indicates that you guys can have that sending the -x param:
-x, --header HTTP header for request (use with --endpoint). ["Authorization: Token cb8795e7"].
Thanks, it worked!