Windows Integrated Authentication disabled by default? #194
Labels
auth:wia
Specific to Windows Integrated Authentication (NTLM/Kerberos)
bug
A bug in Git Credential Manager
platform:windows
Specific to the Windows platform
Which version of GCM Core are you using?
Git Credential Manager version 2.0.252-beta+fe025c12fc (Windows, .NET Framework 4.0.30319.42000)
Which Git host provider are you trying to connect to?
Can you access the remote repository directly in the browser using the remote URL?
Yes
From a terminal, run
git remote -v
to see your remote URL.Expected behavior
I am authenticated and my Git operation completes successfully.
Actual behavior
I just upgraded from GCM with the latest Git for Windows (2.29.0). Authentication does not succeed, as Windows Integrated Authentication does not seem to be enabled by default. This is contrary to the documentation for
GCM_ALLOW_WINDOWSAUTH
andcredential.allowWindowsAuth
which suggest it should be.I see the following line with GCM_TRACE enabled when attempting a git fetch:
If I set
GCM_ALLOW_WINDOWSAUTH=1
, authentication is successful until I unset it again. If I putallowWindowsAuth = true
into the[credential]
section of my .gitconfig, that also works. However, interestingly, I cannot specify it for just a single scoped url entry. Adding it to[credential "my.server.here"]
or[credential "https://my.server.here"]
have no effect. If I changeprovider =
in those scoped sections, that does work - putting in 'github' instead of 'generic' yields the github prompt. So, my sections should be correct.Ultimately, I'm looking for clarification before I write the documentation for my team on the transition. Should allowWindowsAuth be true by default and we don't need to act at all? Do we have to set it at the [credential] level because URL-scoped sections don't work?
The text was updated successfully, but these errors were encountered: