bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Problem with OAuth2 flow

Open Gamingdevil opened this issue 1 month ago • 5 comments

I have checked the following:

  • [x] I have searched existing issues and found nothing related to my issue.

This bug is:

  • [ ] making Bruno unusable for me
  • [x] slowing me down but I'm able to continue working
  • [x] annoying
  • [x] this feature was working in a previous version but is broken in the current release.

Bruno version

2.13.2

Jira

Operating System

Windows 11 Enterprise 10.0.22631

Describe the bug

We have configured the Auth tab at the collection level to use OAuth 2.0 with Authorization Code. This worked perfectly, but we have recently updated to the latest version (2.13.2) and now we are getting the following error:

Image

When checking the timeline, the /oauth2/v2.0/token returns a 400 response: "error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'client_id'. When I check the request body, the client_id is indeed not present.

Note that the login process itself works perfectly; only the fetching of the token fails in this case. Is it possible that this is a newly introduced bug, or did we do something wrong?

Thanks in advance.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Image Image

Gamingdevil avatar Nov 05 '25 13:11 Gamingdevil

Update: apparently it works if we change the "Add Credentials to" setting to "Request Body" instead of using "Basic Auth Header". It's still weird that it suddenly stopped working, but for now we do have a workaround.

Gamingdevil avatar Nov 06 '25 11:11 Gamingdevil

I just wanted to follow up on this. Did anyone have a chance to look at it, or is there more info I should provide?

Gamingdevil avatar Nov 12 '25 10:11 Gamingdevil

@Gamingdevil Thanks for reporting. We will look into this

Pragadesh44-Bruno avatar Nov 12 '25 10:11 Pragadesh44-Bruno

cc @sreelakshmi-bruno @lohit-bruno

helloanoop avatar Nov 12 '25 13:11 helloanoop

Hi, I can confirm this is a bug and we'll get this fixed. Thanks!

sreelakshmi-bruno avatar Nov 13 '25 04:11 sreelakshmi-bruno

Hi, we have a fix in place for this issue. The effort is being tracked in https://github.com/usebruno/bruno/issues/5452. Closing the issue since it's a duplicate. Thanks!

sreelakshmi-bruno avatar Dec 09 '25 05:12 sreelakshmi-bruno