coder / vscode-coder

Open any Coder workspace in VS Code with a single click.
MIT License
49 stars 12 forks source link

2FA are prompted to enter username password #247

Open michaelbrewer opened 2 months ago

michaelbrewer commented 2 months ago

When adding 2FA to Gitlab accounts doing git operations requires the user to ether username and login which will fail ultimately.

remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.example.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://example.com/some/thing.git/'

However the coder terminal, jetbrains gateway client and code server web terminal all allows for git operations to work seamlessly without password prompts.

michaelbrewer commented 3 weeks ago

@code-asher any clue what this happens on VSCode Desktop only and not on code-server, Fleet, Jetbrain Gateway etc..

code-asher commented 3 weeks ago

Hmm is there an personal access token or SSH key on the workspace that the others are using, maybe?

If so, I guess the question is why the VS Code Remote SSH plugin is not using it.