Skip to content

feat: 接入 LecSSO 并完善 Web 与桌面端身份展示 - #6

Merged
17hwliao merged 19 commits into
mainfrom
apries406-lec-sso
Oct 14, 2026
Merged

17hwliao merged 19 commits into
mainfrom
apries406-lec-sso

Conversation

@Apries406

Copy link
Copy Markdown
Member

改动

  • 将 Web 和 Electron 桌面端接入 LecSSO,按组织及权限 scope 验证身份,并安全绑定旧成员记录。
  • 修复桌面成员账号续期时重复申请未授予的管理员 scope;覆盖并发续期、重启恢复和退出清理。
  • 两端统一读取 LecSSO 头像,并按真名(Handle)展示成员;补齐桌面 HTTPS 图片及共享包配置。
  • 修复环境变量示例缺失的必填配置及空默认团队配置。
  • 本分支也包含此前已完成的 macOS 发布、更新提示及桌宠移除。

验证

  • API 190 项、Web 66 项测试通过;桌面版本测试及 2 项身份续期测试通过。
  • 全量构建、类型检查通过;修复后的桌面端另行重新构建通过。
  • 使用线上 LecSSO 的真实账号连接本地 API、Web、Electron:登录、续期、成员权限拒绝管理接口、8 个并发上卡仅落一条记录、下卡与历史统计通过。
  • Web 上卡、桌面下卡;本地数据库和 Web 确认有效时长 723 秒。桌面重启恢复和退出凭证清除通过。
  • 线上 picture claim、当前用户、团队统计、头像图片访问一致;Chrome 和实际 Electron 成员页已逐一确认头像与真名(Handle)。

运行边界

  • LecPunch 与 MongoDB 在本地验证,SSO 使用线上实例;没有部署 LecPunch,也没有合并此 PR。
  • 线上 LecSSO 已补充 picture claim。SSO 种子、兼容迁移及回归测试已更新在 lec-platform 本地源码,未包含在此 PR。
  • 本次实际桌面 UI 验证为 macOS ARM64 开发环境;没有重新验证发布包安装、Windows 或 macOS x64。
  • 线上账号为 senior-captain,成员访问和管理接口拒绝已实测;线上 captain/其他账号角色未用真实账号分别验证。

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bfcd96b0-d333-42c3-adde-70da36ae8e09
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@17hwliao
17hwliao merged commit 6ac6291 into main Oct 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants