usebruno / bruno

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

Support for multiple oauth2 tokens #3408

Open dougleenhouts opened 3 weeks ago

dougleenhouts commented 3 weeks ago

I have checked the following:

Describe the feature you want to add

I'd like to be able to use different oauth2 tokens associated to different user accounts within a folder and/or collection. For example, one would be associated to an admin user and another associated to a non-admin, with the various requests in the collection/folder using one token or the other.

Currently there is only support for a single token, but I need to be able to use multiple tokens, whether they're generated from the folder itself or from a series of requests within the folder.

Mockups or Images of the feature

N/A

VaZark commented 2 weeks ago

so to reframe this, maybe this should be a feature request for multiple "user profiles" allowing us to set different values for the same requests and collections?

dougleenhouts commented 2 weeks ago

Not necessarily because the user associated to the token might not exist beforehand.

For example, a folder that creates users then logs in as those new users will not have any data known ahead of time to use in a "profile". But having an admin token and a non-admin token to run two copies of the same request with tests that validate the different responses would be nice.