desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Get auth token from other request automatically

Open Corentin7301 opened this issue 2 years ago β€’ 6 comments

Checklist

  • [x] I've searched for similar feature requests.

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

Corentin7301 avatar Jan 11 '23 16:01 Corentin7301

I'd love to have this feature as well!

cowclaw avatar Jan 20 '23 09:01 cowclaw

Maybe related to #58?

simecek-m avatar Jan 21 '23 16:01 simecek-m

Thanks for the feedback, everyone! This is coming.

jkbrzt avatar Jan 24 '23 19:01 jkbrzt

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 avatar Jun 11 '23 15:06 peterjskaltsis

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

jkbrzt avatar Jun 12 '23 11:06 jkbrzt

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.

esmiralha avatar Feb 06 '24 13:02 esmiralha