[X] I've searched existing issues and found nothing related to my issue.
Describe the bug
I am trying to use the oauth2 mode in the collection, and to set the "Authentication" header only if the request is setup to use an authentication. Because I have also requests that should not add authentication information.
But bru.getAuthMode() returns unexpected values when executed in a request that has setup to inherit the authentication mode from the collection.
I attached an example collection, so you can reproduce it easier.
So far I got two different values bearer and none.
bearer is returned by my original collection. I guess it is somehow because before I used bearer mode instead of oauth2.
none is returned by the example collection I attached.
But in both collections I set oauth2 for the collection and inherit for the request, as you can see in the attached screenshots. Also in the .bru files it set correctly.
I think it should return one of:
authentication mode inherited by collection
inherit
if this is returned there should be a possibility to get the mode of the collection
I have checked the following:
Describe the bug
I am trying to use the
oauth2
mode in the collection, and to set the "Authentication" header only if the request is setup to use an authentication. Because I have also requests that should not add authentication information.But
bru.getAuthMode()
returns unexpected values when executed in a request that has setup to inherit the authentication mode from the collection.I attached an example collection, so you can reproduce it easier.
So far I got two different values
bearer
andnone
.bearer
is returned by my original collection. I guess it is somehow because before I usedbearer
mode instead ofoauth2
.none
is returned by the example collection I attached. But in both collections I setoauth2
for the collection andinherit
for the request, as you can see in the attached screenshots. Also in the .bru files it set correctly.I think it should return one of:
inherit
.bru file to reproduce the bug
getAuthMode_problem.zip
Screenshots/Live demo link
collection:
request: