thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.59k stars 128 forks source link

oAuth2 Authorization token flow improvements #1565

Open m-schrepel opened 2 weeks ago

m-schrepel commented 2 weeks ago

Please describe feature/problem details and the solution you'd like. We use a custom authorization header instead of Authorization, which means when we use the oAuth2 flow, we have to manually copy and paste the token to an environment variable.

A possible solution would be: Allow for defining a header other than Authorization in the advanced part of the oauth2 flow.

Another solution would be to make the post-request scripts work with the authorization requests. This way we could set a dynamic variable in memory.

Describe alternatives you've considered I tried something like this

tc.request.setHeader('Custom-Header', tc.request.getHeader('Authorization'))

which also doesn't work and would be another viable solution to our issue

Are you using the free version/paid version/trial: Enterprise customer

rangav commented 2 weeks ago

Thanks @m-schrepel for the feedback. I will review and add to the roadmap.