js-graphql-intellij-plugin icon indicating copy to clipboard operation
js-graphql-intellij-plugin copied to clipboard

Request authentication support

Open anli-xsigns opened this issue 3 years ago • 1 comments

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

anli-xsigns avatar May 04 '21 09:05 anli-xsigns

@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.

vepanimas avatar Jul 20 '21 19:07 vepanimas