Skip to content

Git for Windows keeps forgetting that it's signed in as soon as my default browser clears its cache #2928

Answered by mjcheetham
astrohart asked this question in Q&A
Discussion options

You must be logged in to vote

There's a couple of things going on here..

Firstly, since GitHub removed the ability to use username/password (and 2FA code) authentication against their API, we are no longer able to use a username/password/2FA code from a prompt and generate a Personal Access Token (PAT) via the authorizations API endpoint. Both versions of GCM have used this mechanism to authenticate against GitHub - they don't directly store your username/password but instead use them to create a PAT, which is what is stored in the Windows Credential Manager store.

The OAuth/web-based sign-in is now a requirement(*) for authentication with GitHub - this was a GitHub decision, not the Git, Git for Windows, or Git Crede…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by derrickstolee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2928 on December 08, 2020 19:54.