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

Bearer token variable not resolved when generating code #2708

Open
2 tasks done
Moribund7 opened this issue Jul 26, 2024 · 2 comments
Open
2 tasks done

Bearer token variable not resolved when generating code #2708

Moribund7 opened this issue Jul 26, 2024 · 2 comments
Labels

Comments

@Moribund7
Copy link

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 trying to generate code, the token set as variable {{access_token}} is not correctly resolved.

Other variable (in provided video {{baseUrl}}) is resolved correctly.

.bru file to reproduce the bug

REQUEST.bru

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

get {
  url: {{baseUrl}}/trips/byPnrAndName
  body: none
  auth: bearer
}

headers {
  CallID: fe23e4e7-83d5-4de1-86e3-b1a223863acc
}

auth:bearer {
  token: {{access_token}}
}

ENV.bru

vars {
  baseUrl: https://url
}
vars:secret [
  clientSecret,
  clientId,
  access_token
]

Screenshots/Live demo link

Screen.Recording.2024-07-26.at.11.31.53.mov
@Moribund7 Moribund7 added the bug Something isn't working label Jul 26, 2024
@Moribund7
Copy link
Author

I believe the feature to add an authorization token to generated code was introduced here #1792

@hungdh9x
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants