JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

Request authentication support #456

Open anli-xsigns opened 3 years ago

anli-xsigns commented 3 years ago

Thanks a lot for this awesome plugin!

I have an graphql endpoint which needs auth by oauth2 protocol. Therefore we need to retrieve the access_token upfront if the lifetime of the token expired. The new token is valid some time. So it would be great if we could specify the login request and set the received token from response as auth token. Here's a picture how e. g. Insomnia does this. Schnappschuss_050421_110021_AM

vepanimas commented 3 years ago

@anli-xsigns hi! Thank you for the request, it would be a valuable addition to the plugin, but it will not be so easy to fit well into the existing workflow and interface. Actually, we have several ideas about how to rework the request sending workflow by combining it with the http client of the IDEA, but this is still only in the plans.