-
Notifications
You must be signed in to change notification settings - Fork 535
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
cannot use variables in [BasicAuth] #898
Comments
Hi, Unfortunately, you can't use this syntax for now. If you want to not expose credentials in the Hurl file, you can do the following
Where the variable
Or you can also make a environment variable like this:
In this case, any
We can think about how to improve things for basic authentication, because in most cases you don't want to write your credentials in a file, |
fair enough. Thanks for looking into this! |
I just tried the same and would also ask for variables to work in My reasoning is that having credentials in a |
Hi @tpluscode, @andres-lowrie, This issue is now merged on master.
|
Hello, great tool!
Not sure if this is a bug or just a misunderstanding but I'm trying to use variables in the
[BasicAuth]
section and it looks like the tool doesn't like it:test.hurl
and then I call it like
and get back
Is that supposed to work?
My use case is one where I want to be able to define the secrets in another file and not in the hurl file itself to make it easy to share it
The text was updated successfully, but these errors were encountered: