vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

2FA are prompted to enter username password

Open michaelbrewer opened this issue 1 year ago • 4 comments
trafficstars

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 avatar Apr 26 '24 17:04 michaelbrewer

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

michaelbrewer avatar Jun 12 '24 06:06 michaelbrewer

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.

code-asher avatar Jun 13 '24 19:06 code-asher