You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
npmrun
d853f2ad25
feat(oauth): 实现 GitHub OAuth2 登录功能
功能概述:
- GitHub OAuth2 登录(新用户自动注册,已注册用户账号绑定)
- OAuth 状态管理(CSRF 防护,5 分钟 TTL)
- 完整的 API 接口(authorize、callback、bindings、status、bind、unbind)
- 登录页集成 GitHub 登录按钮
数据库:
- 新增 oauth_accounts 表存储第三方账号绑定
- 提供数据库迁移 SQL
API 接口:
- GET /api/auth/oauth/:provider/authorize - 生成授权 URL
- GET /api/auth/oauth/:provider/callback - 处理 OAuth 回调
- GET /api/auth/oauth/bindings - 获取绑定列表
- GET /api/auth/oauth/:provider/status - 查询绑定状态
- DELETE /api/auth/oauth/:provider/unbind - 解绑账号
- POST /api/auth/oauth/bind - 绑定账号
文档:
- 设计文档 docs/superpowers/specs/2026-05-26-oauth2-design.md
- 实施计划 docs/superpowers/plans/2026-05-26-oauth2-implementation-plan.md
- API 文档 docs/superpowers/oauth2/API.md
- Provider 配置 docs/superpowers/oauth2/PROVIDERS.md
- 使用指南 docs/superpowers/oauth2/README.md
- 流程图 docs/superpowers/oauth2/FLOW.md
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
3 days ago |
| .. |
|
launch.json
|
feat(oauth): 实现 GitHub OAuth2 登录功能
|
3 days ago |
|
settings.json
|
chore: update nuxt and tailwindcss versions, add tailwindcss plugin for Vite, and modify package manager version
|
2 weeks ago |