bruno
bruno copied to clipboard
Add support for other Auth types in Folder Authentication
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:
Options on Collection level:
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);
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.
I also think this is a good feature.
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?!
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).
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!
This is added by https://github.com/usebruno/bruno/pull/4609. The feature will be available in our next release