-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
enhancementNew feature or enhancementNew feature or enhancementneeds product designWe like the idea, but we want to explore the problem deeper, and consider the solution holisticallyWe like the idea, but we want to explore the problem deeper, and consider the solution holistically
Milestone
Description
What are the steps to reproduce the problem?
- While using a session, supply only a username to
--auth
so the password is prompted. e.g.http --offline --session ./sess.json --auth user :
- Send a new request using the session without explicit authentication, e.g.
http --offline --session ./sess.json :
What is the expected result?
One of the following:
- The password I entered last time is sent
- I have to enter my password again
(Which of these would be desirable? We're implementing sessions in ducaale/xh#125 and would like to stay compatible)
What happens instead?
In the new request, the password is sent as None
.
Example
$ http --offline --session ./sess.json --auth user :
http: password for user@localhost: pass
GET / HTTP/1.1
[...]
Authorization: Basic dXNlcjpwYXNz
[...]
$ echo dXNlcjpwYXNz | base64 -d
user:pass
$ http --offline --session ./sess.json :
GET / HTTP/1.1
[...]
Authorization: Basic dXNlcjpOb25l
[...]
$ echo dXNlcjpOb25l | base64 -d
user:None
$ cat sess.json
[...]
"auth": {
"raw_auth": "user",
"type": "basic"
},
[...]
ducaale
Metadata
Metadata
Assignees
Labels
enhancementNew feature or enhancementNew feature or enhancementneeds product designWe like the idea, but we want to explore the problem deeper, and consider the solution holisticallyWe like the idea, but we want to explore the problem deeper, and consider the solution holistically