Repository navigation
fix: 修复账户登录、导入与初始化的缺陷 - #1
Merged
Merged
Conversation
- 修复等待初始化的账户被删除后服务以空指针崩溃的问题 - 让换了 refresh token 的再次登录清空项目,异常账户重新登录后按登录序列初始化 - 让账户 JSON 导入的请求经该账户的代理发出,并校验文件中的代理 - 支持导入与切换官方客户端的企业账户凭据,账户 JSON 保留认证方式,按认证方式与 WIF provider 选择刷新 token 的客户端 - 让 login --remote 一并上传登录前的设备档案,授权码提示在 Ctrl+C 时退出 - 让切换官方客户端账户在凭据写入失败时照常重新打开官方客户端 - 让撤销期内关闭或刷新页面时立即发出删除,同源校验的错误写出 Origin 与 Host - 把账户资料的修改放进账户库的一次加锁,账户文件损坏时错误写出文件路径 - 更新开发文档、协议文档与 README 中登录、导入、切换、配对与反向代理的说明 Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
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.
问题
PROXY的第一项,文件中的账户代理不参与也不校验auth_method为gcp)被导入为个人账户,刷新 token 用的是个人账户的 OAuth 客户端;企业账户切换到官方客户端时写入的是个人账户凭据login --code停在授权码提示时按 Ctrl+C 不退出login --remote登录前请求所用的设备档案不随 token 上传,远程服务为账户另生成档案Host时管理请求返回的 403 不写原因;账户文件损坏时启动错误不含文件路径;管理端修改账户资料与上游状态写回并发时可能丢失一次修改修复
project,账户随后按登录序列初始化;token 与资料在账户库的一次加锁中写入gcp凭据导入为企业账户,邮箱取id_token_email,wif_provider写入账户;企业账户切换时写auth_method: gcp、邮箱与 provider,与官方客户端登录后、选择许可证前保存的凭据相同auth_method与wif_provider,导入时沿用getOAuthConfig的规则选择:有 WIF provider 时用 WIF 客户端,以 Google 账户登录的企业账户用 Google Cloud 客户端,其余用个人客户端login --remote把设备档案与 token 一并上传,远程的新账户沿用该档案Origin与Host,README 写明反向代理原样转发Host;账户文件的 JSON 错误带文件路径;管理端修改账户资料改用账户库的加锁修改测试
invalid_grant使账户为 error):修改前初始化为tokeninfo与 dailyloadCodeAssist开始的冷启动序列,修改后为 prodloadCodeAssist开始的登录序列PROXY不可达时导入带可用代理的账户(真实实例):修改前以连接被拒失败,修改后换取 token 与 userinfo 经该账户的代理发出,776 ms 导入成功;同一次导入的两个账户仍并发换取 token,请求相隔 10 mslogin --remote配对上传(真实实例):修改前账户的installation_id与上传的不同,修改后设备档案与上传的相同login --code在 Linux 上收到 SIGINT:修改前 3 秒后仍在运行,修改后以context canceled退出DELETE,修改后各发一次Origin的管理请求:修改后 403 的消息写出Origin与Hostgcp凭据导入为企业账户并沿用邮箱与 provider、企业账户写回gcp凭据;企业账户导出再导入时以 Google Cloud 客户端换取 token;三种账户刷新 token 时表单中的 client_id 与密钥各自对应;撤销对应修改后三项测试失败project、账户文件错误带路径 3 项在修改前失败、修改后通过;导入代理、授权码提示、上传正文与调度中的账户换 refresh token 后的登录序列 4 项在撤销对应修改后失败go vet、前端类型检查与 lint 通过