Skip to content

OAuth2 - "Bearer" text is automatically added to Header Prefix field if the field is emptyΒ #4873

Closed
@TomasPustka

Description

@TomasPustka

I have checked the following:

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

This bug is:

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

Bruno version

2.40

Operating System

Windows 11 26100.3194 for desktop, Alpine of unknown version when using CLI

Describe the bug

Jira

Hello,

The API I am using requires authentication via OAuth2.
Our particular flavor requires an "Authorization" header with the token for value, like this:

Image

This is the setting I am using for the Collection (individual requests inherit the setting):

Image

There are two problems related to this:

Problem number 1:
In the GUI application, the Header Prefix is auto-populated with "Bearer" value if the Collection setting is saved.
The video should illustrate the issue:

2025-06-10.18-02-46.mp4

Luckily, the problem has a workaround - I leave the value empty and just don't save the Collection. However, I have to do that every time I reopen Bruno.

Problem number 2:
In the CLI application, the Header Prefix is auto-populated with "Bearer' value and added to the Authorization header. This causes all the requests that use OAuth2 to fail.

Note that this happens even though in the collection.bru file, the header prefix value is empty:

Image

I don't have a workaround for this issue, so the CLI is unusable for the time being.

Best regards,
Tomas Pustka

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Screenshots and videos are part of the description.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions