fix(dingtalk): preserve local auth and sync access-only cloud snapshots - #12
Open
luckjun529-lang wants to merge 2 commits into
Open
luckjun529-lang wants to merge 2 commits into
luckjun529-lang wants to merge 2 commits into
Conversation
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.
背景
DingTalk 0.3.3 的独占凭据交接会删除本地登录凭据,旧交接回执还会强制本地业务走 Broker。当当前任务没有可用 Broker 环境时,本地插件因此不可用。
本 PR 按 WeWork 0.5.4 已有协议实现一次 DWS 授权、本地唯一刷新、云端短期访问快照,不修改 WeWork 源码。插件版本更新为 0.3.4。
变更
dingtalk-local与可选 bearer 快照连接dingtalk-access分离,云端同步失败不再影响本地登录。dingtalk_cloud_token_expired,保持连接可被后续同步更新,包装器返回非零退出码。验证
wework-v0.5.4的认证 schema 校验。vendor.py --check .和git diff --check通过。348d79dd20308f5d4ae50812c2528bd5af6d272c836dcaa015624d840a584419。生成 ZIP 留在本地,不提交二进制到 Git。发布门禁 / 升级限制
详见
docs/dingtalk-auth-wework-0.5.4-design.md。