oauthex: GetProtectedResourceMetadata's strict resource equality blocks RFC 9728-conformant servers
Los mantenedores suelen responder en 1 día
@nahapetyan-serob ya está trabajando en esto.
Desde el 20/11/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- api, authentication
Línea de trabajo
Start with GetProtectedResourceMetadata in resource_meta.go:135 and compare its strict resource check with MatchesResource in audience.go:33; read RFC 9728 §3.3 for the intended resource semantics. Check the auth-code flow in authorization_code.go for existing fallback behavior. Done means direct callers can handle advertised resource values as described and can fetch metadata without validation; the issue does not specify the API shape or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
oauthex.GetProtectedResourceMetadata (resource_meta.go:135) rejects a PRM whose resource field differs from the URL the client passed, per RFC 9728 §3.3 — but §3.3's model is that the PRM IDENTIFIES the protected resource and the client should request a token FOR the advertised value, not demand it equal the endpoint URL. Servers advertising the issuer form (resource = origin while the endpoint is origin/mcp) are rejected by the strict !=, even though the package already exports oauthex.MatchesResource (audience.go:33) — unused at the validation site.
The SDK's own auth-code flow tolerates this per-candidate (authorization_code.go swallows validation errors and falls back), so only direct callers of the strict helper hit the wall.
Two asks:
- Consider MatchesResource-style tolerance (or an opt-out) at the validation site.
- Expose a fetch-without-validation variant (getJSON is unexported) so clients can follow §3.3's model without hand-rolling the fetch.
Context: mcpcli (github.com/ConsulTent/mcpcli) hit this against an OAuth-armed MCP appliance enforcing resource indicators and worked around it with a local PRM fetch.
- Lenguaje dominante
- Go
- Estrellas
- 5.4k
- Forks
- 623
- Merge medio
- 22 h 10 min
- PR fusionados (30 d)
- 30
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/go-sdk
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
modelcontextprotocol/go-sdk#1557 ·
Los mantenedores suelen responder en 1 día
-
Streamable HTTP (2026-07-28): tools/call with an out-of-range number in arguments fails because extractName decodes Arguments into anyQuizá libre de nuevo @beiryu la tomó hace 10 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/go-sdk#1534 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Expose generic `SendNotification` on `ServerSession` for custom protocol extensionsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoneeds investigation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/go-sdk#745 · 13 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 18/100
modelcontextprotocol/go-sdk#1555 ·
Los mantenedores suelen responder en 1 día
-
mcp: 2026-07-28 client runs elicitation and sampling handlers for standalone server requestsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
modelcontextprotocol/go-sdk#1552 ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/go-sdk
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
apache/dubbo-admin#1659 ·
Los mantenedores suelen responder en 8 días
-
taskmanager: a failed v1alpha1 backup leaves the partial backup behindPosiblemente ocupada @arshil42 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Packaging: support mise-en-placeAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100