bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Add support for other Auth types in Folder Authentication

Open MichaMican opened this issue 7 months ago • 5 comments

I have checked the following:

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

This feature

  • [ ] blocks me from using Bruno
  • [x] 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

Currently you can choose from a variety of auth "types" on collection level. It would be awesome if that would be also possible on Folder level Auth which was introduced with 2.0.0

Mockups or Images of the feature

Current options:

Image

Options on Collection level:

Image

MichaMican avatar Apr 07 '25 08:04 MichaMican

My current workarround is basically a Script of Folder level:

const btoa = require("btoa")
var  creds = btoa(bru.getEnvVar("<usernameEnvVarName>")+":"+bru.getEnvVar("passwordEnvVarName"));
req.setHeader("Authorization","Basic "+creds);

MichaMican avatar Apr 07 '25 09:04 MichaMican

Hi @MichaMican,

We're planning to add this soon, but I can't commit to a timeline just yet. Let's analyze the effort involved first—once that's done, I'll be able to give you a better estimate.

anusree-bruno avatar Apr 07 '25 13:04 anusree-bruno

I also think this is a good feature.

Flipped199 avatar Apr 08 '25 03:04 Flipped199

Yeah, I was wondering why my individual requests can have Basic Auth, my collection can have Basic Auth but my folder cannot.

Would love to see this! Shouldn't be a big change, right?!

kkevindev avatar Apr 25 '25 14:04 kkevindev

As another workaround, you can manually add the auth to the folder.bru file. To discover the proper format, use the GUI to temporarily set up Auth on a collection or request, and inspect the saved file. (Only tested with bearer token auth).

tradiff avatar Apr 27 '25 11:04 tradiff

This would be awesome! I'm also doing the workaround of manually setting the folder.bru file, but having the option to do that via the gui would be great!

carneloot avatar May 30 '25 15:05 carneloot

This is added by https://github.com/usebruno/bruno/pull/4609. The feature will be available in our next release

anusree-bruno avatar May 30 '25 16:05 anusree-bruno