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

Bug: conflicting auth sources silently prefer ?token= over Authorization header

Aperta
#27 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@xyaz1313 ci sta già lavorando.

Dal 14/4/2026.

  • #36 di @xyaz1313 — aperta
  • #37 di @xyaz1313 — aperta
  • #38 di @xyaz1313 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Start by locating the middleware that reads the Authorization header and ?token= query parameter, then trace how it selects credentials. The issue does not name files or tests; first identify existing authentication tests and read the comments around the two open linked pull requests. Done means conflicting credentials follow a clearly chosen policy and the behavior is covered by tests.

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

Descrizione

bug good first issue help wanted

Summary

If both an Authorization header and a ?token= query parameter are provided, the middleware silently replaces the header with the query token. In production that can hide client misconfiguration and make debugging auth problems harder.

Reproduction

  1. Send a request with Authorization: Bearer TOKEN_A.
  2. Also append ?token=TOKEN_B to the URL.
  3. Observe that the request is executed with TOKEN_B and the original header is discarded.

Expected

Either:

  • reject conflicting auth sources with 400, or
  • preserve one source deterministically and emit a strong warning.

Actual

The query token silently wins.

Why it matters

This is a realistic integration mistake with browser-hosted clients, local proxies, and copied config snippets.

Lingua principale
Python
Stelle
22
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 openapi/mcp-server

Tutte le issue di openapi/mcp-server

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.