Repository navigation
feat(bangumi): OAuth 直连登录(回环回调 + 7 天自动轮换) - #95
Merged
Merged
Conversation
- 新增 BangumiOAuthClient(scraper-core):授权 URL 拼装、 code 换 token、refresh_token 轮换,代理复用现有配置 - 新增回环回调监听 + BangumiOAuthCoordinator(sync-engine-shared): state 机、state 校验、换 token 跑独立协程、临期 24h 自动刷新 - SecurePreferences 存 refresh token + 过期时间,登出/清空一并清除 - AppModule 装配:BuildConfig 读 client id/secret(缺省未配置不断构建) - TV 设置元数据区:登录按钮 + WebView 对话框 + 外部浏览器入口 + 状态/有效期展示;手动贴 token 链路保留 - i18n 四地文案 + resolver 映射;单测覆盖 client/协调器/VM 接线 - 文档:pre-pr checklist 条目 + parity 表(OAuth 流程为 TV-only)
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
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.
Bangumi OAuth 直连登录:TV 内嵌 WebView 授权 + 回环回调接 code + 换 token 加密落库 + 临期 24h 自动轮换。手动贴 Token 链路保留,TV 设置页为唯一入口(Web 端已有 token 管理端点,不做 OAuth surface,见 parity 表)。CI 同仓库 PR 注入 BANGUMI_CLIENT_ID/SECRET(#94),fork PR 显示未配置态。
设备实测(HK1,2026-10-20)
未覆盖(原因已记入 pre-pr-checklist)
顺带发现(非本 PR 范围,另起跟进)