Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 2.0 Possibility to reset token e.g. after environment change or per script #4392

Open
2 of 4 tasks
saniprogger opened this issue Apr 1, 2025 · 1 comment
Open
2 of 4 tasks
Labels
enhancement New feature or request

Comments

@saniprogger
Copy link

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

This feature

  • blocks me from using Bruno
  • would improve my quality of life in Bruno
  • is something I've never seen an API client do before

Describe the feature you want to add, and how it would change your usage of Bruno

I use the same requests in different environments. Each environment requires a different authorization token (e.g. access token with a different audience). Currently, I need to restart Bruno to clear the token internally stored in {{$oauth2.credentials.access_token}}. It would be amazing if either the would be an option to reset the token when the environment is change or the possibility to access and delete this variable in the script section - in my case of the collection - so that a new token with the variables from the newly selected environment is fetched.

Mockups or Images of the feature

No response

@saniprogger saniprogger added the enhancement New feature or request label Apr 1, 2025
@JoelDSmith
Copy link

The token can be forcibly retrieved or cleared using the buttons at the bottom of the auth config, but yes, this is annoying to have to do when switching environments (and is technically a regression from the manually-scripted behaviour I had from before the new oauth2 functionality was rolled out in V2).

Screenshot

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants