feat(web): C1 segment-boundary gates with on_deny and exclude

Make auth/admin gates use path segment prefixes, configurable redirect vs 403, and login_path exclusion so /admin-publish and /desk/login are not mis-matched.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-04 12:38:44 +08:00
1 parent 0aa0f47a9d
commit b10a84466b
9 files changed
+365 -67

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
| | |
|---|---|
| 状态 | **C0 done · C1–C4 planned** |
| 状态 | **C0–C1 done · C2–C4 planned** |
| 日期 | 2026-09-04 |
| 问题盘点 | [../../research/ext-web-customization-limits.md](../../research/ext-web-customization-limits.md) |
| 相关 | [../ext-web.md](../ext-web.md) · [../ext-web-net.md](../ext-web-net.md) · [../../roadmap/ext-web.md](../../roadmap/ext-web.md) |
+1 -1
View File
@@ -42,7 +42,7 @@
| 波次 | 内容 | 状态 |
|------|------|------|
| **C0** | `admin` 关则不占路径;`admin_prefix` / 登录回跳可配 | **done** |
| **C1** | gate 匹配与未登录策略一致;段边界默认 admin gate | **planned** |
| **C1** | gate 匹配与未登录策略一致;段边界默认 admin gate | **done** |
| **C2** | `shell_css` + `layout` 松绑 | **planned** |
| **C3** | 样式 strict / 脚本 defer·version | **planned** |
| **C4** | 壳预设收口与条件导航(后续) | **planned** |