-
Notifications
You must be signed in to change notification settings - Fork 591
Keep being re-prompted for credentials #853
Comments
Hi @kentcb. Have you tried upgrading to 1.19? |
@derrickstolee I've just upgraded both git4win and GCMW. That said, it was working perfectly well for a very long time before it suddenly started to frequently prompt me for credentials. Will report back to this issue once I have more data. |
Thanks, @kentcb. If it changed without you updating your software, then it is probably due to a server-side change and you can consult GitHub support for more assistance. |
I was just prompted for credentials again. Here's the trace:
|
Hey @kentcb, when you say..
..do you have multiple GitHub accounts that the different repositories might have or not-have access to? Are you also using any of the Git or GitHub features in Visual Studio, or the GitHub desktop client app at the same time? |
@mjcheetham No to all your questions. But I haven't actually experienced this problem again since my above post. i.e. it only happened once and not since :/ I will set myself a reminder for two weeks. If I haven't seen this problem again in that time, I'll gladly close the issue. |
@kentcb thanks for the reply! Looking at the traces you captured I don't see anything obviously going wrong; no errors etc. One strange thing I do see is that Git appears to be asking GCM to
It could be that (for some reason) GCM is being asked to store twice from two separate Git processes (hence the question about using other Git tools) and we're walking over ourselves trying to store the PAT. This feels unlikely however, because I'd expect the other would-be process to be writing more information to the trace log. Please let us know if you hit this again. |
Haven't hit this since my comment above, so closing for now. |
Which Version of GCM are you using ?
1.18.3
Which service are you trying to connect to
GitHub
Expected behavior
Not be prompted for credentials more than once.
Actual behavior
I am prompted for credentials often. Not every time, mind you. But at least several times a day. I mean, look at this madness:
It seems to be particularly exacerbated by switching between different repositories, but even if I stick to one it will re-prompt me for credentials soon enough.
I have already set
git config --global credential.writelog true
and trapped the problem. However, thecredential.log
file is completely empty.Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the log
The text was updated successfully, but these errors were encountered: