usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
21.54k stars 1.01k forks source link

Automatic refresh of a OAuth2+PKCE token #2437

Open NjbBzz opened 2 weeks ago

NjbBzz commented 2 weeks ago

I have checked the following:

Describe the feature you want to add

Hi I have set up an OAuth2 + PKCE in Auth tab of a collection. The requests in the collection are configured with "inherit". As the token is valid only for a short amount of time, it needs to be refreshed before sending a new request. Currently it's done manually by clicking on "get access token" in Collection Auth tab. I didn't find a way to automatize it in pre-request script. It will be great if this action is automatically executed each time a request is sent and the token is expired.

Mockups or Images of the feature

Capture d’écran du 2024-06-11 10-21-25