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

OAuth2 not working when values pulled from global environment variables #3387

Closed cford1080 closed 3 weeks ago

cford1080 commented 3 weeks ago

I have checked the following:

Describe the bug

When defining the OAuth 2 values on a collection, an error occurs when attempting to retrieve the access token. It's possible this is not just an issue for OAuth2 but for all Auth on the Collection. It's also possible that the issue extends for all Collection level properties. I didn't test any of that. It does appear that the values are being pulled into the UI at least, as indicated by the green text in the screenshots and the correct values shown on hover (not included).

It also appears that this is not a bug at the request level. See third screenshot for success.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Collection level OAuth2 using global env

image

Collection level OAuth2 using Collection environment

image

Request level OAuth2 success with global environment variables

image
sreelakshmi-bruno commented 3 weeks ago

Hi @cford1080, thanks for reporting! We're working on this and it is scheduled to be included in the upcoming release.