git operations results in "fatal: User canceled authentication." and prompts for username and password #1617
Labels
auth:microsoft
Specific to Microsoft AAD/MSA authentication
auth-issue
An issue authenticating to a host
external
Relating to an external partner, team, or library
windows-broker
Related to the Windows "Web Account Manager" authentication broker
Version
2.5.0+d34930736e131ad80e5690e5634ced1808aff3e2
Operating system
Windows
OS version or distribution
Windows 10.0.19045.4355
Git hosting provider(s)
Azure DevOps
Other hosting provider
No response
(Azure DevOps only) What format is your remote URL?
https://{org}.visualstudio.com
Can you access the remote repository directly in the browser?
Yes, I can access the repository
Expected behavior
git pull
should successfully update the local version of a repo from a remote serverActual behavior
git pull
results in the following error:fatal: User canceled authentication.
Username for 'https://dev.azure.com/{organization}/{project}/_git/{repository}':
We observed this behavior for other git commands too.
Logs
This problem has been intermittently affecting several office developers at Microsoft. The broker authentication is failing for some reason. However, we found a temporary solution by switching to a non-broker authentication mode in GCM by setting
credential.msauthUseBroker
flag tofalse
in the git config file. Redacted logs are attached for further analysis.gitlogs.log
The text was updated successfully, but these errors were encountered: