feat(tui): M0A.5b TUI 登录 - #84
Merged
Merged
Conversation
wangjk9527
force-pushed
the
feat/m0a5b-tui-login
branch
2 times, most recently
from
July 23, 2026 16:58
114eba5 to
04a9a1c
Compare
9 tasks
wangjk9527
force-pushed
the
feat/m0a5b-tui-login
branch
3 times, most recently
from
July 24, 2026 16:32
ffc491b to
81f2269
Compare
This was referenced Jul 26, 2026
wangjk9527
added a commit
to wangjk9527/datafoundry
that referenced
this pull request
Jul 26, 2026
接入正式认证登录/会话恢复,并按复审加固: - 认证请求 redirect:manual,逐跳拒绝 HTTPS→HTTP 与跨 origin - AbortController 覆盖完整 body 读取;session 隔离/重置与保存同锁,锁支持过期回收 - CSRF 403 若 jar token 已更新则直接重试;session-invalid 去重先于清理副作用 基于 main reset 后重提原 datagallery-lab#84,rebase 到 DataLink 外置 deploy + M0A.5a 栈上; 同步清理 TUI 指南中残留的离线 Demo 模式表述。 Co-authored-by: wing <wangjk9527@users.noreply.github.com>
wangjk9527
force-pushed
the
feat/m0a5b-tui-login
branch
from
July 26, 2026 08:11
81f2269 to
62167a5
Compare
wangjk9527
marked this pull request as ready for review
July 26, 2026 08:11
wangjk9527
added a commit
to wangjk9527/datafoundry
that referenced
this pull request
Jul 27, 2026
接入正式认证登录/会话恢复,并按复审加固: - 认证请求 redirect:manual,逐跳拒绝 HTTPS→HTTP 与跨 origin - AbortController 覆盖完整 body 读取;session 隔离/重置与保存同锁,锁支持过期回收 - CSRF 403 若 jar token 已更新则直接重试;session-invalid 去重先于清理副作用 基于 main reset 后重提原 datagallery-lab#84,rebase 到 DataLink 外置 deploy + M0A.5a 栈上; 同步清理 TUI 指南中残留的离线 Demo 模式表述。 Co-authored-by: wing <wangjk9527@users.noreply.github.com>
wangjk9527
force-pushed
the
feat/m0a5b-tui-login
branch
from
July 27, 2026 06:45
62167a5 to
323d32b
Compare
wangjk9527
added a commit
to wangjk9527/datafoundry
that referenced
this pull request
Jul 27, 2026
接入正式认证登录/会话恢复,并按复审加固: - 认证请求 redirect:manual,逐跳拒绝 HTTPS→HTTP 与跨 origin - AbortController 覆盖完整 body 读取;session 隔离/重置与保存同锁,锁支持过期回收 - CSRF 403 若 jar token 已更新则直接重试;session-invalid 去重先于清理副作用 基于 main reset 后重提原 datagallery-lab#84,rebase 到 DataLink 外置 deploy + M0A.5a 栈上; 同步清理 TUI 指南中残留的离线 Demo 模式表述。 Co-authored-by: wing <wangjk9527@users.noreply.github.com>
wangjk9527
force-pushed
the
feat/m0a5b-tui-login
branch
from
July 27, 2026 08:45
323d32b to
893ea81
Compare
接入正式认证登录/会话恢复,并按复审加固: - 认证请求 redirect:manual,逐跳拒绝 HTTPS→HTTP 与跨 origin - AbortController 覆盖完整 body 读取;session 隔离/重置与保存同锁,锁支持过期回收 - CSRF 403 若 jar token 已更新则直接重试;session-invalid 去重先于清理副作用 基于 main reset 后重提原 datagallery-lab#84,rebase 到 DataLink 外置 deploy + M0A.5a 栈上; 同步清理 TUI 指南中残留的离线 Demo 模式表述。 Co-authored-by: wing <wangjk9527@users.noreply.github.com>
Max-Age=0/过期 Expires 的 Set-Cookie 现在会删除 jar 条目;session-invalid 清理失败仍通知 auth-required;logout/auth-required 后强制交互登录,避免 磁盘残留会话被静默恢复。
wangjk9527
force-pushed
the
feat/m0a5b-tui-login
branch
from
July 28, 2026 03:02
893ea81 to
76d4666
Compare
AuthenticatedTransport 默认 redirect:follow 时,开放重定向目标的 Set-Cookie 会写入 jar 并覆盖 df_session。改为 redirect:manual,与 auth-client 一致,避免跨 origin 响应毒化会话。
wangjk9527
requested review from
SymbolZH,
Wistomize and
iancaoo
and removed request for
SymbolZH
July 28, 2026 03:19
Contributor
Review overview — M0A.5b TUI 登录整体审了 47 个文件,并在 PR 分支的临时 worktree 里实跑了 做了什么新增
正确性 / 安全 — 通过
次要观察(非阻断,未提 comment)
结论无阻断性功能缺陷。 TUI typecheck 干净、101 单测全过;安全设计(manual-redirect 防 cookie 投毒、CSRF 单飞重试、超时覆盖 body 读取、sticky auth-required、session-store 文件锁)正确且有测试覆盖;离线 demo 删除干净并有 guard 测试防回归。仅 |
iancaoo
approved these changes
Jul 28, 2026
iancaoo
pushed a commit
that referenced
this pull request
Jul 28, 2026
接入正式认证登录/会话恢复,并按复审加固: - 认证请求 redirect:manual,逐跳拒绝 HTTPS→HTTP 与跨 origin - AbortController 覆盖完整 body 读取;session 隔离/重置与保存同锁,锁支持过期回收 - CSRF 403 若 jar token 已更新则直接重试;session-invalid 去重先于清理副作用 基于 main reset 后重提原 #84,rebase 到 DataLink 外置 deploy + M0A.5a 栈上; 同步清理 TUI 指南中残留的离线 Demo 模式表述。 Co-authored-by: wing <wangjk9527@users.noreply.github.com>
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.
Summary
/logoutrun-defaults)共用AuthenticatedTransport;身份探测走GET /api/v1/meMax-Age=0吊销、session-invalid 清理失败仍通知、logout/auth-required 后强制交互登录Test plan
npm --workspace @datafoundry/tui test(100 passed)npm run test:auth-foundation(24 passed)npm run smoke:tui-auth-sharing(需本地栈)