bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Unable to Set Authentication at Collection Level, Making Inheritance Feature Ineffective

Open jeevankumarj25 opened this issue 1 year ago • 2 comments

I have checked the following:

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

Describe the feature you want to add

In the Bruno API client, users are unable to set authentication methods, such as Bearer Token, at the collection level. Consequently, each request must be manually configured with the authentication method. This undermines the purpose of the inheritance feature, which is supposed to streamline the process by allowing requests to inherit authentication settings from the collection level. The absence of this functionality makes it tedious to manage authentication for multiple requests within the same collection.

Mockups or Images of the feature

noAuthentication at collection level

jeevankumarj25 avatar May 17 '24 04:05 jeevankumarj25

This is already implemented. Click on the Gear Icon in the Top right corner to open collection settings and then select the auth tab.

Its-treason avatar May 17 '24 04:05 Its-treason

In case it hit someone else after an upgrade: you need to specifically set Auth inside all Requests to Inherit, otherwise the Colelction setting will not be used (and you probably get an 401 Unauthorized error).

image

mpiecko avatar May 17 '24 06:05 mpiecko

Can we make the Auth Bearer Token as secret at Collection level?

omair-khalid avatar Sep 19 '24 12:09 omair-khalid

Having to set "inherit" for the authentication on every single request severely limits the usefulness of Bruno, as a whole.

What use case am I missing that would make "No auth" the best default?

smarj avatar Nov 27 '24 20:11 smarj

@smarj The default setting for Inherit is being tracked in #4087.

@omair-khalid Yes, you can set Bearer Token Auth at the Collection Level, and requests will inherit it.

Closing this issue as Bruno already supports Authentication at the Collection Level.

helloanoop avatar Feb 27 '25 18:02 helloanoop