Skip to content

Conversation

@coltea
Copy link
Collaborator

@coltea coltea commented Dec 22, 2025

PR 标题

企业微信多域名下存在应用无法登录的问题

相关 Issue

变更类型

请勾选适用的变更类型:

  • Bug 修复 (不兼容变更的修复)
  • 新功能 (不兼容变更的新功能)
  • 功能改进 (不兼容现有功能的改进)
  • 文档更新
  • 依赖更新
  • 重构 (不影响功能的代码修改)
  • 测试用例
  • CI/CD 配置变更
  • 其他 (请描述):

变更内容

详细描述本次 PR 的具体变更内容:

  1. 企业微信多域名下存在应用无法登录的问题

测试情况

描述本次变更的测试情况:

  • 已本地测试
  • 已添加测试用例
  • 不需要测试 (理由: )

其他说明

任何其他需要说明的事项:

Copilot AI review requested due to automatic review settings December 22, 2025 03:32
@coltea coltea merged commit 50624e2 into chaitin:main Dec 22, 2025
8 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a WeCom (企业微信/WeChat Work) SSO login issue that occurs when multiple applications exist under the same enterprise across different domains. The fix ensures that each application with a different agent ID maintains its own separate access token cache.

  • Modified the OAuth2 ClientID to be a composite of both corpID and agentID

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant