-
Notifications
You must be signed in to change notification settings - Fork 522
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
Support inclusion of user/password in request without using --user #360
Comments
There isn't something specific for the basic auth for one test. For example, for the user bob with password 'secret'
The Hurl file is defined as follows:
|
@fabricereix It's true that there is no facility appart HTTP headers within Hurl format, maybe we can add an Authorization request section:
We could add something like:
This way, we could also support more authentification methods. In anyway, we should update the docs with basic authentification sample, |
For sure, BasicAuth makes a good sample for the doc. The section could also be specific for BasicAuth
or maybe, within the templating
|
👍 |
Adding a |
Updated README.md and hurl.dev documentation with basic authentification sample. |
Thanks for the details and doc update with example. It allowed me to do what I needed. |
We forgot that we can also use the user:password in the url. There willl be therefore 3 possible ways to add basicAuth at the request level
|
It's possible this can already be done, and I'm missing it; but I want to be able to specify basic HTTP auth with user and password in a test, but not set it globally for all tests. That is, in some tests I want to use userA and in others, userB.
The text was updated successfully, but these errors were encountered: