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

未关闭
#3,442 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
353

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

fluentcms/FluentCMS 的其他 Issue

查看 fluentcms/FluentCMS 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。