Repository navigation
feat(remote-access): 远程访问设置页可选机构账号或自己的中继,并可测试连接和重试(#228) - #232
Merged
freedomkk-qfeng merged 4 commits intoOct 26, 2026
Merged
Conversation
…undle Since remote access ships as its own npm bundle, its entry comes from the bundle's patch, not composition.json, so remoteAccess from the desktop configuration was dropped without a word. The relay is now a row of its own in the product patch, which reaches the bundle whether it came with the product or was installed by the user. Saved preferences are now also rebased when a product row appears or goes, so a configuration update that adds, withdraws or replaces the relay reaches a computer whose user has already saved the plugin's settings, and withdrawn defaults do not linger as personal ones.
…it, and see what to do next (ECNU#228) The settings page now lets the user choose between the organization's account and their own relay with an access key, shows whether they are signed in to the organization and signs them in, and tests the relay: whether its address answers and whether it admits this computer, also before remote access is on. A failed connection can be retried, and Add a device stays visible with what it still needs. The organization's relay still comes only from the distribution, so the ID Token goes nowhere else.
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.
改动
按 #228 调整远控插件的“远程访问”设置页。本机确认配对、逐台移除设备的机制不变。
organization: { relay, oidcProfileId })时,可在“使用‘机构’账号”和“使用自己的中继服务器”之间切换,默认使用机构账号。没有机构配置时,与现在一样填写中继和接入密钥。dsh-oidc的begin打开机构登录页。身份凭证仍由dsh-oidc获取和续期,用户不用复制 Token 或改 YAML。useOrganization中(默认true)。healthz,再用所选身份向中继登记一次(只连接一次,10 秒超时,有结果就断开),分别显示“中继服务器能否访问”和“身份验证是否通过”。只有healthz成功不算通过。身份未通过时,按接入密钥或机构账号模式给出排错提示;机构拒绝暂不细分具体原因,不假定电脑数量上限。未开启远程访问时也能测试;已开启时直接显示当前连接的状态,不再另外登记,以免把正在使用的连接挤掉。使用机构账号但未登录时,提示先登录。remoteDevices/test、retry、signIn只供本机设置页使用,远端门禁会拒绝。验证
npm run check(packages/dsh-remote-access):76 个测试通过。新增测试覆盖:oidcAccounts服务模拟登录):桌面配置中的
remoteAccess要经 #231 才能传到插件。Closes #228
维护者补充
已整合 #230 的热安装事务上下文修复和 #231 的机构配置下发修复,并修正中英文机构鉴权失败提示。远控插件版本更新为
0.1.2,合入后发布 npm。组合后的插件类型检查、构建及 76 项测试通过;宿主配置相关 43 项测试通过(使用 0.4.9 / DSH rc.3 Runtime)。本轮维护者验证不等同于完整桌面成品和真实学校账号端到端验收。