Skip to content

feat(demo): 从登录页进入全站只读演示账户 #548

Description

@tiankaima

目标

在登录页提供“进入演示”入口。演示账户进入后像普通已登录用户一样浏览现有页面,看到一套相互一致的 demo 数据;所有普通用户业务操作均为只读。演示模式不另建独立工作台。

范围

覆盖普通用户能看到的功能,包括工作台、目录、课程与作业、待办、订阅、社区及账户资料。管理员、OAuth 授权、上传和对外订阅等有外部副作用的入口不在演示范围,演示身份下应隐藏或禁用。

验收

  • 登录入口、导航和账户状态清楚标明“演示 / 只读”。
  • 演示身份不能伪装成真实用户,也不能读取真实用户的私有数据。
  • demo 数据在页面及其使用的 API 中一致,能浏览普通用户功能的主要状态。
  • 演示身份的写入请求在服务端被拒绝;界面同步禁用相关操作并说明原因。
  • 正常登录用户的功能与权限保持不变。

交付顺序

先打通登录页入口、一个完整的普通用户浏览路径和服务端只读边界;每完成一组页面,就补齐相应 demo 数据及端到端验证。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authAuthentication, OAuth, identity, authorization, roles, scopes, and credentialsarea: infrastructureProduction runtime, Cloudflare, storage, containers, deployment, and releaseskind: securityKind: securitytaskDevelopment task tracking issue (org board)

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions