httpie / desktop

🚀 HTTPie Desktop — cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs.
https://httpie.io
Other
2.76k stars 31 forks source link

Get auth token from other request automatically #63

Open Corentin7301 opened 1 year ago

Corentin7301 commented 1 year ago

Checklist


Enhancement request

HI! I think it would be interesting to add a feature to get the auth token from other request automatically like Insomnia with body attribute response.


Problem it solves

I'm always frustrated when I must to generate manually a new token with login request, copy the token and paste it in the auth token input.


Additional information, screenshots, or code examples

In Insomnia: CleanShot 2023-01-11 at 17 58 55@2x

cowclaw commented 1 year ago

I'd love to have this feature as well!

simecek-m commented 1 year ago

Maybe related to #58?

jkbrzt commented 1 year ago

Thanks for the feedback, everyone! This is coming.

peterjskaltsis commented 1 year ago

Thanks for the feedback, everyone! This is coming.

Been loving the httpie app, curious whether this feature is still being worked on @jakubroztocil ? It's the main thing I'm missing from other clients.

jkbrzt commented 1 year ago

Thanks for the feedback, everyone! This is coming.

Been loving the httpie app, curious whether this feature is still being worked on @jakubroztocil ? It's the main thing I'm missing from other clients.

@peterjskaltsis Yes, it is!

It’s been taking a while because it’s part of a larger project: A new runtime & scripting engine to be shared between the cloud and CLI, desktop, and web apps. This will lead to a robust and consistent experience across the platform.

(We know many folks are specifically waiting for the request chaining, so we might consider providing an interim ad-hoc implementation for the app if finishing the runtime takes too long.)

esmiralha commented 6 months ago

A more generic implementation could be achieved by making it possible to map response body attributes to env vars. Could be used for authentication or any other purpose by leveraging the env to hold the state between requests.