Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

WWW-Authenticate parsing splits inside quoted strings and can report auth schemes the server never offered

Đang mở
#796 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
authentication, backend

Hướng nghiên cứu

Start with lib/auth.py, especially extract_auth_types and select_auth_type, then inspect the existing authentication tests. Reproduce the quoted comma cases in RFC 9110 section 11.6.1, including Digest qop and Bearer error_description; done means parsing reports only offered challenges and does not select Basic for the Bearer example.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Disclaimer: AI-generated issue, written by Claude Opus 5.5 (Claude Code). I wanted to delete some old code review documents, but apparently they still contained some unhandled findings.


lib/auth.extract_auth_types (lib/auth.py:31) splits the header on every comma. Bearer realm="x", error_description="expired, basic auth not accepted" yields a phantom basic (plus junk tokens like error="invalid_token"). With a username configured, select_auth_type (lib/auth.py:59-63) then picks basic and sends the username and password as Basic auth to a server that only offered Bearer. Fix: parse per RFC 9110 section 11.6.1 (skip quoted strings, only take tokens that start a challenge), with tests for Digest qop="auth,auth-int" and Bearer error_description.

Ngôn ngữ chính
Python
Star
412
Fork
113
Merge trung bình
11 giờ 37 phút
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-caldav/caldav

Tất cả issue của python-caldav/caldav

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.