Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if my endpoint requires an oAuth token? #188

Open
MikeGriffinReborn opened this issue Jun 17, 2020 · 3 comments
Open

What if my endpoint requires an oAuth token? #188

MikeGriffinReborn opened this issue Jun 17, 2020 · 3 comments

Comments

@MikeGriffinReborn
Copy link

Is there any way to pass in an oAuth token?

@andushow
Copy link

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 ?

@elielsonms
Copy link

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"].

@andushow
Copy link

Thanks, it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants