Repository navigation
Conversation
- OAuth flow 按 realm 分域:intl=z.ai(data.zai 会话凭证需 z/login 换业务 token)、 cn=bigmodel.cn(data.bigmodel 即业务 token,免二次换取);init provider 随区域 - Account 增加 realm 字段并随导出/导入持久化;bigmodel 通道 JWT 凭证自动归位 zai/cn - 回退 API Key 业务域随区域(cn → open.bigmodel.cn),Plan 通道两端点同域不分 - 后台新增/授权登录支持区域选择;前端账号池展示区域与国内版授权引导 - Mock 上游支持 oauth_poll_realm 场景;新增 realm 单测与 cn 全流程集成测试
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为 OAuth 登录链路引入双区域(intl/cn)支持:国际版继续走 z.ai 授权,新增国内版 bigmodel.cn 授权入池,业务域随账号区域分域。
细节
测试