Hi.
I'm using Git credentials manager with Cmder and our git repo is on msazure.visualstudio.com.
On my desktop it works just fine but on my laptop I get "fatal: Authentication failed for {our repo}".
Deleting the credentials directly in the windows credential manager doesn't work. Neither does adding it. (It never prompts a window with request for user and password)
Also verified this: credential.helper=manager
No luck so far. Restarting my machine didn't help either.
I do get the prompt for credentials (popup window, for VS Team Services) but still get the same "Fatal: authentication failed" message. I think it relates to v1.2.0, I installed 1.1.0 release and authentication errors disappeared. I wasn't even re-prompted for credentials, I guess they were saved to Windows Credential Store.
Thanks. Uninstalling v1.2.0 and installing v1.1.0 solved the problem.
Some logs for the developers for v1.2.0:
The logs shifts all the time from Program::Get to Program::Erase over and over.
Here are 2 occurrences:
Log Start (2016-03-06 14:06:50Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Get
targetUri = https://msazure.visualstudio.com/
Program::CreateAuthentication
detecting authority type
authority is Azure Directory
credentials found
Log Start (2016-03-06 14:06:55Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Erase
targetUri = https://msazure.visualstudio.com/
Program::CreateAuthentication
detecting authority type
authority is Azure Directory
deleting VSTS credentials
Log Start (2016-03-06 14:08:28Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Get
targetUri = https://msazure.visualstudio.com/
Program::CreateAuthentication
detecting authority type
authority is Azure Directory
credentials found
Log Start (2016-03-06 14:08:33Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Erase
targetUri = https://msazure.visualstudio.com/
Program::CreateAuthentication
detecting authority type
authority is Azure Directory
deleting VSTS credentials
I am having the same experience.
I can work fine in VS, but get the error at the command line. This is new behavior. Not sure what has changed.
UPDATE**
I uninstalled 1.2, then reinstalled it and had the same error.
Next I uninstalled 1.2 and installed 1.1 and all it worked immediately.
Uninstalling v1.2.0 and installing v1.1.0 solved the problem.
Next I uninstalled 1.2 and installed 1.1 and all it worked immediately.
Thanks for that, we now know it is a bug in 1.2. I'll mark this accordingly.
The get -> delete cycle is usually triggered by Git instructing the GCM to delete credentials because the supplied credentials were reported as invalid by the host. Unfortunately, I'm not seeing this happen with any of the instances of VSTS I have. I'll keep trying and with luck can reproduce the issue and resolve it quickly.
Thanks to @ybro I was able to resolve this issue quickly. #142
@whoisj I just installed 1.2.1 and I'm still having the same issue. Is there a way to clear the stored credentials or something else I need to do?
Is there a way to clear the stored credentials or something else I need to do?
Try the following:
Windows Credential Manager shortcut and double-click it to open the application.Remove and confirm removal when prompted.Wash, rinse, repeat as necessary.
That worked and taught me something new. Thanks!
That worked and taught me something new. Thanks!
:balloon:
You're welcome. :grinning:
I had this issue this week... Why hasn't it been fixed? I basically followed whoisj's workaround except I actually updated the password right there instead of removing the entry in Credential Manager.
I had this problem today as well (git version 2.12.2.windows.1). I think it depends on your configuration whether you suffer from it, but somebody may have to report a new bug for this.
@carlin-q-scott @kwazel the issue should be fixed in the latest Git for Windows (v2.12.2.windows.2)
@whoisj Ah, I was using an older version, the one that comes with Git-Extensions. I've updated to the latest version so hopefully I never have this issue again.
Thank you whoisj that really helped me resolve my git issue.. years later your reply lives on :)
Thank you @gistofj
I came across the same issue in macOS. The steps to clean up stored credentials in macOS are:
@y-code are you sure that you are using the Git Credential Manager _for Windows_ on macOS?
@dscho oh, sorry. I didn' t notice this repo is _for Windows_. it was not appropriate to talk about the case on macOS.
i'm still facing the same issue on 2.26.1.windows.1.
git pull throws fatal: Authentication failed for 'http://..'
git config --local credential.helper shows manager and in the windows credential manager i've removed every entry.
i'm still facing the same issue on 2.26.1.windows.1.
git pullthrowsfatal: Authentication failed for 'http://..'
git config --local credential.helpershowsmanagerand in the windows credential manager i've removed every entry.
Did you try setting http(s)://username@url instead of http(s)://url?
Most helpful comment
Try the following:
Windows Credential Managershortcut and double-click it to open the application.Removeand confirm removal when prompted.Wash, rinse, repeat as necessary.