> HTTP authentication
Just clarifying, do you mean basic auth with the `Authorization: Basic base64(username : password)` scheme?
Just clarifying, do you mean basic auth with the `Authorization: Basic base64(username : password)` scheme?
But this is of course even worse because most servers log this. Headers are not often logged.
As far as I know only Nginx accepts multiple Authorization headers.
$ nc -l 127.0.0.1 8000
GET / HTTP/1.1
Host: 127.0.0.1:8000
User-Agent: python-requests/2.22.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Authorization: Basic dGVzdDp0ZXN0
>>> requests.get("http://test:test@127.0.0.1:8000") $ curl http://user:pass@localhost:8080
GET / HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.79.1
Accept: */*
Authorization: Basic dXNlcjpwYXNz
$ curl -H 'Authorization: Token blobbity' http://user:pass@localhost:8080
GET / HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.79.1
Accept: */*
Authorization: Token blobbityhttps://www.ietf.org/rfc/rfc3986.txt
FYI