OAuth DCR omits token_endpoint_auth_method, so token exchange fails on client_secret_basic servers
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
Start with RegisterClientWithClient and ExchangeCodeForTokenWithClient in the OAuth client code, and compare the auth method sent at registration with the client-secret handling in the token request. Reproduce by registering against a server that defaults to client_secret_basic and checking which credential placement the exchange uses. Done when both steps use the same method, and the exchange follows the token_endpoint_auth_method the server returns.
由索引模型根据 Issue 内容生成。
描述
RegisterClientWithClient sends no token_endpoint_auth_method, so servers register the client as client_secret_basic (the RFC 7591 default). ExchangeCodeForTokenWithClient then sends client_secret in the form body (client_secret_post). Supabase-based auth servers reject this, and the OAuth prompt repeats.
Repro (v1.150.0): add https://mcp.structured.app/mcp as a remote MCP and authorize. The token exchange returns 400: invalid authentication method: client is registered for 'client_secret_basic' but 'client_secret_post' was used.
- Registration and token exchange use the same auth method.
- Token exchange honors the method the server returns at registration.
Workaround: register a public client by hand and set remote.oauth.clientId.
- 主要语言
- Go
- 星标
- 4.4k
- 派生
- 508
- 平均合并
- 7 小时 52 分钟
- 30 天内合并 PR
- 237
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker/docker-agent 的其他 Issue
-
pkg/hooks tests fail with a misleading assertion when jq is not installed可能已有人在做 @dwin-gharibi 于 53 天前认领。 未关闭area/testing
难度 2/5 1-3 小时 新手友好度 86/100
docker/docker-agent#4052 ·
维护者通常 1 天内回复
-
`remove_directory` and `create_directory` hide work they already did when a later path fails可能已有人在做 @dwin-gharibi 于 71 天前认领。 未关闭area/tools
难度 2/5 1-3 小时 新手友好度 85/100
docker/docker-agent#3933 ·
维护者通常 1 天内回复
-
`edit_file` silently edits the first match when `oldText` occurs more than once可能已有人在做 @dwin-gharibi 于 71 天前认领。 未关闭area/tools
难度 2/5 1-3 小时 新手友好度 78/100
docker/docker-agent#3929 · 2 条评论 ·
维护者通常 1 天内回复
-
area/docs
难度 2/5 1 小时以内 新手友好度 25/100
docker/docker-agent#4607 ·
维护者通常 1 天内回复
-
area/docs area/models area/providers/gemini area/runtime automated
难度 5/5 一周以上 新手友好度 12/100
docker/docker-agent#4600 ·
维护者通常 1 天内回复
查看 docker/docker-agent 的全部 Issue
相似的 Issue
-
bug
难度 2/5 半天 新手友好度 72/100
维护者通常 1 天内回复
-
kind/bug
难度 2/5 1-3 小时 新手友好度 62/100
kubernetes-sigs/external-dns#6816 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
ANSI translator ignores SGR 22/24 (and other attribute-off codes): bold and underline never turn off未关闭
难度 2/5 1-3 小时 新手友好度 78/100
-
Named Tuple element with a space in its name fails to parse可能已有人在做 @spicysharkco 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
ClickHouse/clickhouse-go#2073 ·
维护者通常 1 天内回复