-
Notifications
You must be signed in to change notification settings - Fork 95
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
Request: Support OAuth 2.0 Authorization Code Flow with Refresh Tokens #720
Comments
Hi @franz-josef-kaiser! Which IDE do you use? If it's one of the Ultimate versions, such as IntelliJ IDEA Ultimate, PyCharm Professional, WebStorm, or similar ones you can try the IntelliJ HTTP Client. I'd love to hear your feedback on it when used with GraphQL. The plugin can also handle authorization — here. As I'm considering deeper integration of the HTTP Client with the GraphQL plugin, your feedback could be very valuable. |
Hi @vepanimas, I appreciate reading this. Thank you very much. What I am aiming for is to run auth as preliminary request for a query from within a |
Yes, that's correct. While it may be inconvenient at the moment because the plugin isn't integrated with the HTTP Client, my intention was to verify whether the HTTP Client plugin infrastructure is capable of handling your authentication request when making queries, and AFAIU it should be. If it works well for you, we'll consider implementing WEB-69781 in the upcoming updates. |
Hi, I tried this as well. I have a GraphQL API that needs OAuth Authorization (commercetools). When using GraphQL in the HTTP-Client, the OAuth 2.0 flow works like a charm:
What I would love to be able to do would be something like the following in my schema:
- https://api.<region>.commercetools.com/graphql:
headers:
Authorization: Bearer {{$auth.token("commercetools")}} Maybe some additional parameters are needed, idk, but I hope you get the idea :-) |
The fact stated in for e.g. #304 didn't state the test of time: Having refresh tokens that are used to exchange short lived access tokens (gladly) is much more common and secure to date.
Is there a possibility to get this feature into the plugin? Currently we are resorting back to Insomnia, Hoppscotch, Postman and the likes to have the ability to perform one request to fetch an access token before the actual request. It would be great if this would be available in the plugin as well.
Thanks a ton for your work anyway!
The text was updated successfully, but these errors were encountered: