Skip to content

Don't allow multi-accounts for GitHub auth while it only supports 1 account #203850

Closed

Description

@AntonSedlak

Does this issue occur when all extensions are disabled?: nonsence?

Accounts are managed by vscode? You need to decide where extensions get the information about which account to log in with.
However, by running without extensions, I understandably cannot verify the login.

VS Code Version: Version: 1.86.0-insider
Commit: 5d34400
Date: 2024-01-26T23:09:36.502Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 5.19.0-1010-nvidia-lowlatency

Steps to Reproduce:

  1. start vscode-insiders
  2. log to GitHub Copilot with account AAA
  3. Check AAA: Account Manage Trusted Extension - GitHub Copilot - OK working
  4. log to GitHub Pull request with account BBB
  5. Check BBB: Account Manage Trusted Extension - GitHub Pull request- OK both working
  6. restart vscode-insiders
  7. now cannot log to GitHub Copilot because it tries to use account BBB, I've checked log. I must relogin steps 2-5.

Account BBB was used before also for Copilot.
Now I have separate accounts, AAA paid for Copilot and the other BBB for repositories, but it's still not functional after restart.
I need Copilot so that I can manage the repository.
And why is Copilot attempting to use the BBB account for logging in when it doesn't even have the permissions for that by Manage Trusted Extension?

Activity

  1. gjsjohnmurray commented on Jan 31, 2024

    @gjsjohnmurray
    Contributor

    Sounds like a duplicate of #127967

  2. TylerLeonhardt commented on Feb 2, 2024

    @TylerLeonhardt
    Member

    Yeah we only really support a single GitHub account. The fact that you can log in to multiple GitHub accounts is a bug. I'm not really inclined to fix that bug as I would rather spend cycles supporting multi-account in GitHub...

  3. changed the title [-]Using the wrong account to log in to GitHub Copilot.[/-] [+]Don't allow multi-accounts for GitHub auth while it only supports 1 account[/+] on Feb 2, 2024
  4. added
    authentication-github
    bug
    on Feb 2, 2024
  5. added this to the Backlog milestone on Feb 2, 2024
  6. AntonSedlak commented on Feb 6, 2024

    @AntonSedlak
    Author

    I was truly satisfied with having just one account for all repositories, but with the introduction of Copilot, our company requires having a special account for Copilot, which I cannot avoid, hence the second account.
    But I have the Copilot service precisely to be able to write and modify projects from the original account.

    It's not a problem to switch accounts, but the issue is having a paid service that stops functioning when I connect to GitHub differently. I want the paid service to work without limitations. Why am I paying for it?

    Or is it necessary to move all projects elsewhere so that the Copilot service isn't intertwined with repository management services?

  7. neeraj-ec commented on Feb 9, 2024

    @neeraj-ec

    Agrees with Antonio (@AntonSedlak). I have copilot access on my personal Github account and repo access with my Org Github account. If I install Github PR and issues extension and authenticate it with my org account, it makes copliot useless. For a while in past everything was working seamlessly with copilot extensions authenticated with my personal account and Github Pull Request and Issues with my org account. Now it's all intertwined making paid feature useless.

  8. DarKowGit commented on Feb 10, 2024

    @DarKowGit

    I'm having the same issue as Neeraj Kumar (@neeraj-ec) above. Copilot sub is on my personal GitHub account because I do contract work for an org who doesn't enable that by default. So I am logged in to two GitHub accounts. And I need to be. It was all working until this week. Now I've lost access to Copilot in my IDE. 🥺 This is a valid use case.

  9. yllekz commented on Feb 13, 2024

    @yllekz

    I frequently have to jettison one of my two signed-in accounts to get Copilot to start working again. This workaround, while functional, is unsustainable due to having to choose between using Github Copilot or the ability to commit/push.

  10. karnigen commented on Feb 13, 2024

    @karnigen

    The best approach is to let the Copilot use its authentication protocol, and for the repository, use SSH, after you setup ssh login, change local repository with git remote set-url.
    Then there shouldn't be an issue using Copilot everywhere until VSCode resolves different logins for different services.

  11. StJohn3D commented on Mar 4, 2024

    @StJohn3D

    This doesn't solve a problem, only puts a bandaid on a bigger issue. We have valid use cases to authenticate into extensions with different GitHub accounts. This needs to be supported.

  12. TylerLeonhardt commented on Mar 4, 2024

    @TylerLeonhardt
    Member

    I want to set some expectation that multi-account for GitHub isn't supported today... and the workarounds folks have suggested have left users in confusing places and this has to be dealt with, which is what this issue tracks. Making it clear that we only support 1 account, at this time.

    We do want to support multi-account and it's something we'd like to make progress on in the near future. It's not as simple as it sounds... check this comment of mine when I investigated the work involved:
    #127967 (comment)

    Until we can iron out the details and do this work in such a way that it makes sense, I want VS Code to be clear in what it supports.

    The workaround I can recommend is installing VS Code & VS Code Insiders side-by-side and log in to two separate GitHub accounts there. Additionally, you could even use Settings Sync (with a common Microsoft account) so that your settings are synced between the two of them so it's easy to switch off.

  13. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Mar 4, 2024
  14. locked and limited conversation to collaborators on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

authentication-githubbuginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions