Repository navigation
fix: 根治本地认证重启后的会话丢失 - #36
Merged
Merged
Conversation
背景: 本地认证入口混用 localhost 与 127.0.0.1,导致 host-only SSO Cookie 被拆分;同时授权码换票无法为受信 loopback alias 安全恢复中央会话。 改动: - 新增仅 development 可用的精确 loopback 浏览器别名配置与来源校验 - 将授权码绑定 Cookie SID、会话版本和认证代际,并仅在严格校验后复制 Cookie - 保持公网 canonical 与跨站 RP 的既有兼容边界,补齐代理信任与回归覆盖 验证: - 557 项 pytest 全量通过 - Ruff 与架构检查通过 - 本地认证、API、UI 健康检查均为 200 Co-Authored-By: Codex <noreply@anthropic.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.
背景
本地认证入口混用 localhost 与 127.0.0.1,导致 host-only SSO Cookie 被拆分;授权码换票也无法为受信 loopback alias 安全恢复中央会话。
改动
验证