Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#796 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
412
Fork
113
Merge medio
10h 29m
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di python-caldav/caldav

Tutte le issue di python-caldav/caldav

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.