MCP client redirect URIs: custom schemes shown as a host, and a change of host case never stored

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

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp

調査の方向性

Start in src/FluentCMS.Core/Identity/Oidc/ by reading ClientConsents.HostOf and ClientRegistrationService.IsCurrentAsync, then trace the authorize endpoint’s redirect URI comparison. Add tests for custom-scheme consent display and for a host-case-only configuration change taking effect after the next start without ending consents; done when both behaviors pass.

索引モデルが issue の本文から書いたものです。

説明

area:identity plugin type:bug

Two defects in how redirect URIs of MCP clients are read (src/FluentCMS.Core/Identity/Oidc/), found in the review of #3434. Both are older than it.

  • The consent page shows the authority of a custom-scheme redirect URI as a web host. ClientConsents.HostOf now shows the scheme for com.example.app:/cb, but myapp://callback/x still shows callback as if it were a host.
  • A configured redirect URI changed only in the case of its host is never stored. ClientRegistrationService.IsCurrentAsync treats it as current, so the stored string keeps the old spelling. If the authorize endpoint compares the stored string exactly, a client that sends the URI as it is now configured is refused. Check which comparison the authorize endpoint makes, then store the configured spelling or normalize both sides.

Wanted

  • A custom-scheme redirect shown by its scheme, never as a host, with a test.
  • A configured redirect URI that changes only in case works at the authorize endpoint after the next start, with a test, and without ending consents.

Found in the review of #3434. Bundle 26.

主要言語
C#
スター
567
フォーク
107
平均マージ
1時間 19分
マージ済み PR(30日)
353

環境構築

はじめの一歩

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

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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