BasicAuth still not working
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- c, linux
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
Start by reviewing the BasicAuth configuration and request authentication handling in Tinyproxy, then reproduce the reported 407 response with the supplied configuration and curl command. The issue does not identify relevant source files or tests, so trace how the Authorization header is checked and look for existing BasicAuth tests. Done means valid credentials allow the proxy request while invalid credentials still receive 407.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Tinyproxy version
1.11.1
Issue
With version 1.11.1, the proxy works well without BasicAuth
after adding the config line
Port 8888
Listen 127.0.0.1
Timeout 600
Allow 0.0.0.0/0
BasicAuth user1 123456
It looks like the basic auth does not work. There was issue #246 stating the problem was resolved.
I configure http_proxy=http://user1:[email protected]:8888 and the proxy is broken.
then I send a command directly to the proxy as below:
curl -vvv -X CONNECT -u user1:123456 http://127.0.0.1:8888
* Trying 127.0.0.1:8888...
* Connected to 127.0.0.1 (127.0.0.1) port 8888 (#0)
* Server auth using Basic with user 'user1'
> CONNECT / HTTP/1.1
> Host: 127.0.0.1:8888
> Authorization: Basic dXNlcjE6MTIzNDU2
> User-Agent: curl/8.1.2
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 407 Proxy Authentication Required
< Server: tinyproxy/1.11.1
< Content-Type: text/html
* Authentication problem. Ignoring this.
< Proxy-Authenticate: Basic realm="Tinyproxy"
< Connection: close
<
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head><title>407 Proxy Authentication Required</title></head>
<body>
<h1>Proxy Authentication Required</h1>
<p>This proxy requires authentication.</p>
<hr />
<p><em>Generated by tinyproxy version 1.11.1.</em></p>
</body>
</html>
* Closing connection 0
Can someone kindly help is this a problem or my misusage?
- Ngôn ngữ chính
- C
- Star
- 6.1k
- Fork
- 768
- Merge trung bình
- 15 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tinyproxy/tinyproxy
-
HTTP Request Smuggling: non-final chunked Transfer-Encoding not rejected (CWE-444)Có thể đã có người làm @code1a2024 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
-
Feature request: opt-in destination-CIDR denial for direct origin connectionsCó thể đã có người làm @omrzk đã nhận 28 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Tất cả issue của tinyproxy/tinyproxy
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
jaredgei/wow-forever-android#97 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
on_ctrl_redirect(): iterator never advances — infinite loop stalls the event loop at 100% CPUĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
openziti/ziti-sdk-c#1254 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Requisite=graphical-session.target lets a D-Bus activation at logout cancel the target's stopĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
flatpak/xdg-desktop-portal#2215 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
http_fetch tests: the two no-child rows fail, not skip, where a task's children file does not existCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:http kind:gate-defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
InauguralSystems/EigenScript#2397 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add SECURITY.mdĐang mởenhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày