Skip to content

Empty username and password proxy config should enable WIA/default credentials #216

@CarliJoy

Description

@CarliJoy

Which version of GCM Core are you using?

From a terminal, run git-credential-manager-core version and paste the output.

Git Credential Manager version 2.0.280-beta+1f4c6db90f (Windows, .NET Framework 4.0.30319.42000)

Which Git host provider are you trying to connect to?

  • Azure DevOps
  • Azure DevOps Server (TFS/on-prem)
  • GitHub
  • GitHub Enterprise
  • Bitbucket
  • Other - please describe

Can you access the remote repository directly in the browser using the remote URL?

From a terminal, run git remote -v to see your remote URL.

  • Yes
  • No, I get a permission error
  • No, for a different reason - please describe

[Azure DevOps only] What format is your remote URL?

[Azure DevOps only] If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.

  • Not applicable
  • I only see one identity
  • I checked each identity and none worked

Expected behavior

Github Login Popup open, the Browser opens, I am authenticated and the git command run through by connecting to the Proxy using NTLM auth.

Actual behavior

Github Login Popup opens, the Browser opens and tells me that I am authenticated but gcm-core fails to connect to the proxy

Notes
The authentication works fine with the outdated gcm setting

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.net>
    <defaultProxy useDefaultCredentials="true" />
  </system.net>
</configuration>

in the git-credential-manger.exe.config file. But even if I add these settings to the gcm-core config file, it won't work.

PS: Some more detailled logs for errors connecting to proxies would be great (i.e. what kind of authentication was tried)

Logs

C:\git-dir>git push
20:09:32.763301 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
20:09:32.767801 git.c:444               trace: built-in: git push
20:09:32.767801 run-command.c:663       trace: run_command: GIT_DIR=.git git remote-https origin https://github.
com/CarliJoy/SyncGitlab2MSProject.git
20:09:32.814700 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git
-core
20:09:32.814700 git.c:729               trace: exec: git-remote-https origin https://github.com/CarliJoy/SyncGit
lab2MSProject.git
20:09:32.814700 run-command.c:663       trace: run_command: git-remote-https origin https://github.com/CarliJoy/
SyncGitlab2MSProject.git
20:09:32.867828 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git
-core
20:09:33.546331 run-command.c:663       trace: run_command: 'C:/Users/USER/Documents/bin/gc-core/git-credent
ial-manager-core.exe get'
20:09:34.241477 ...\Application.cs:69   trace: [RunInternalAsync] Git Credential Manager version 2.0.280-beta+1f
4c6db90f (Windows, .NET Framework 4.0.30319.42000) 'get'
20:09:34.241477 ...\Command.cs:63       trace: [ExecuteAsync] Start 'get' command...
20:09:34.268594 ...\Command.cs:74       trace: [ExecuteAsync] Detecting host provider for input:
20:09:34.268594 ...\Command.cs:75       trace: [ExecuteAsync]   protocol=https
20:09:34.268594 ...\Command.cs:75       trace: [ExecuteAsync]   host=github.com
20:09:34.484722 ...viderRegistry.cs:129 trace: [GetProvider] Performing auto-detection of host provider.
20:09:34.484722 ...\Command.cs:77       trace: [ExecuteAsync] Host provider 'GitHub' was selected.
20:09:34.484722 ...\HostProvider.cs:115 trace: [GetCredentialAsync] Looking for existing credential in store wit
h service=https://github.com account=...
20:09:34.500346 ...\HostProvider.cs:120 trace: [GetCredentialAsync] No existing credentials found.
20:09:34.500346 ...\HostProvider.cs:123 trace: [GetCredentialAsync] Creating new credential...
20:09:34.615828 ...bHostProvider.cs:192 trace: [GetSupportedAuthenticationModesAsync] https://github.com/ is github.com - authentication schemes: 'OAuth'
20:09:38.437288 ...pClientFactory.cs:53 trace: [CreateClient] Creating new HTTP client instance...
20:09:38.791533 ...ClientFactory.cs:144 trace: [TryCreateProxy] Created a WebProxy instance:
20:09:38.791533 ...ClientFactory.cs:145 trace: [TryCreateProxy]         uri=http://webproxy.company.com:8888/
20:09:38.791533 ...pClientFactory.cs:59 trace: [CreateClient] HTTP client is using the configured proxy.
info: please complete authentication in your browser...
fatal: An error occurred while sending the request.
fatal: The remote server returned an error: (407) Proxy Authentication Required.
20:09:40.827803 run-command.c:663       trace: run_command: bash -c 'cat >/dev/tty && read -r line </dev/tty && echo "$line"'
Username for 'https://github.com':

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in Git Credential Manager

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions