Repository navigation
feat(bangumi): 网页控制台账号密码验证码登录 - #99
Merged
Merged
Conversation
电视遥控器很难对焦邮箱、密码和验证码。网页控制台代电视向 Bangumi 提交登录并换 OAuth token,密码不落盘。电视端 WebView 登录和手动粘贴 token 保持不变。 Co-authored-by: ModerRAS <adqewsx@gmail.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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 的邮箱、密码和验证码。网页控制台本来就能用键盘输入,这次把账号登录放到「元数据」页,遥控器不用再点这些框。
怎么登录
电视代浏览器去 Bangumi 取登录页和验证码,再提交邮箱、密码和验证码。授权成功后,回调地址交给现有的
BangumiOAuthCoordinator换 access / refresh token。注册的 redirect 仍是http://127.0.0.1:13712/callback,浏览器不会被重定向到这台电脑的回环地址。密码只出现在发往 Bangumi 的那一次表单里,不写入凭据,也不出现在接口响应里。电视端 WebView 登录和手动粘贴 Access Token 都还在。
出站代理继续用
rssProxy*。网页start会替换尚未完成的那一次电视授权。会话 10 分钟过期。验证
./gradlew assembleDebug test lint通过(含:app与:web-control)。本机第一次跑时bun不在 Gradle 的 PATH 里,补上~/.bun/bin后重跑成功。登录表单
验证码错误
登录成功
手机宽度
这次是 PR,没有改
baseAppVersionName。To show artifacts inline, enable in settings.