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

I need help about JWT auth #52

Closed
kakao-kong-j opened this issue May 27, 2018 · 5 comments
Closed

I need help about JWT auth #52

kakao-kong-j opened this issue May 27, 2018 · 5 comments

Comments

@kakao-kong-j
Copy link

Hello.
I need help, so I've created an issue.

We are going to use graphdoc to document the project that has been completed.
However, our project is now designed to be accessible to graphql even though it must pass JWT certification.
So if you want to document using graphdoc, you have to send Authorization to header.
I would appreciate it if you can help me.

I would like to apply it as shown below.

I would appreciate your reply anytime.

Thank you.

  {
        "name": "project",
        // [...]
        "graphdoc": {
            "endpoint": "http://localhost:8080/graphql",
            "header":{"Authorization":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}
            "output": "./doc/schema",
        }
    }
graphdoc -e http://localhost:8080/graphql -o ./doc/schema
@Kobreizhyashi
Copy link

Same problem, if you've found a way to solve this problem.. just let us know 👍

@brunomarks7
Copy link

Same problem here. :/

@jandju
Copy link

jandju commented Apr 10, 2020

I think they add option "header" it works like argument of command but when is set in package.json it is ignored.
Does anyone have example of package.json which works with graphdoc ???

@gregsdennis
Copy link

Have you tried including "Bearer" in the header? This is usually how a JWT is transmitted.

"header": {"Authorization": "Bearer eyJhbGciOiJIU..."}

@kakao-kong-j
Copy link
Author

This issue is too old and I don't remember how I did it.

Therefore, rather than keeping the current issue open, it would be better to close it and proceed again if necessary.

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

5 participants