Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth option Api Key does not add header to request #3843

Open
2 tasks done
GROwen opened this issue Jan 20, 2025 · 3 comments
Open
2 tasks done

Auth option Api Key does not add header to request #3843

GROwen opened this issue Jan 20, 2025 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@GROwen
Copy link

GROwen commented Jan 20, 2025

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

When setting Auth at the collection level and inheriting the value in requests the request does not include an Authorization header

.bru file to reproduce the bug

collection.bru

auth {
  mode: apikey
}

auth:apikey {
  key: ApiKey
  value: {{ApiKey}}
  placement: header
}

environment.bru

vars {
  deployment: int
}
vars:secret [
  ApiKey
]

request.bru

meta {
  name: request
  type: http
  seq: 3
}

get {
  url: https://{{deployment}}.fictional.url
  body: none
  auth: inherit
}

Screenshots/Live demo link

Image

Generated code

curl --request GET \
  --url 'https://int.fictional.url'
@GROwen GROwen added the bug Something isn't working label Jan 20, 2025
@GROwen
Copy link
Author

GROwen commented Jan 20, 2025

Possible duplicate of #3824

@ganesh-bruno ganesh-bruno self-assigned this Jan 20, 2025
@ganesh-bruno
Copy link
Collaborator

Hey @GROwen,

Thanks for reporting this issue.

I’ve been able to reproduce it, and we’re working on it.

@sreelakshmi-bruno
Copy link
Collaborator

sreelakshmi-bruno commented Jan 20, 2025

Hi, quick update: we have merged #3512 and it will be released in the upcoming week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants