Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

OAuth DCR omits token_endpoint_auth_method, so token exchange fails on client_secret_basic servers

オープン
#4,590 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@locker95 がすでに取り組んでいます。

2026年10月14日 から。

  • #4595 @locker95 による — オープン

評価

難易度
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 の本文から書いたものです。

説明

area/mcp area/security

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分
マージ済み PR(30日)
237

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-agent のほかの issue

docker/docker-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。