question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I need help about JWT auth

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
Kobreizhyashicommented, Jul 9, 2019

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

0reactions
jinhokongcommented, Jul 2, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

All You Need to Know About JWT Authentication - Frontegg
JSON Web Token (JWT) is a popular user authentication standard, used to securely exchange information online. This token is made up of three ......
Read more >
JSON Web Token Introduction - jwt.io
JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties...
Read more >
What is JWT (JSON Web Token)? - Blog - miniOrange
JWT authentication is a token-based stateless authentication mechanism. It is popularly used as a client-side-based stateless session, this ...
Read more >
JWT authentication: Best practices and when to use it
A JWT is a mechanism to verify the owner of some JSON data. It's an encoded, URL-safe string that can contain an unlimited...
Read more >
What is JWT Authentication? | How to Make Your Tokens Secure
JSON Web Token (JWT) is a JSON encoded representation of a claim(s) that can be transferred between two parties. The claim is digitally...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found