-
Notifications
You must be signed in to change notification settings - Fork 0
多账户上下文切换(个人号 + 工作号) #17
Copy link
Copy link
Open
Labels
area/providersGitHub/GitLab/Gitea 集成GitHub/GitLab/Gitea 集成area/security凭证与访问控制凭证与访问控制enhancementNew feature or requestNew feature or requestpriority/p2中优先级:锦上添花中优先级:锦上添花
Description
Metadata
Metadata
Assignees
Labels
area/providersGitHub/GitLab/Gitea 集成GitHub/GitLab/Gitea 集成area/security凭证与访问控制凭证与访问控制enhancementNew feature or requestNew feature or requestpriority/p2中优先级:锦上添花中优先级:锦上添花
问题
很多开发者同时有个人 GitHub 账号和公司 GitHub 账号,分别对应不同的 SSH key、PAT、组织权限。当前
BrowseRemoteRepoViewModel只存单一 token(provider-api-<provider>),切换账号必须先登出再登入,无法"并列浏览两个账号各自的仓库"。建议改动
ProviderAccount概念:每个(provider, label)对应一套 token + 可选的 host(自建 GitLab)provider-api-<provider>-<accountID>provider-api-gitea→provider-api-gitea-default备选方案
作用域检查