fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
461 stars 10 forks source link

Fork doesn't seem to store credentials for Overleaf git access #1600

Open rk-exxec opened 2 years ago

rk-exxec commented 2 years ago

I have an issue with my overleaf git access. Ever since I added a second document in Overleaf and cloned it with Fork, I keep getting the credential dialogues when Fork does the auto fetch.

This didn't happen before with only one Overleaf repo open. When I come into work I am greeted by hundreds of these auth prompts.

Why is there a problem now? Is this even caused by Fork?

Git output:

$ git fetch --prune origin --verbose

remote: Please sign in using your email address and Overleaf password.
remote: 
remote: *Note*: if you sign in to Overleaf using another provider, such 
remote: as Google or Twitter, you need to set a password on your Overleaf 
remote: account first. Please see https://www.overleaf.com/blog/195 for 
remote: more information.
fatal: Authentication failed for 'https://git.overleaf.com/xxxxxxxxxxxxxxxxxxxxxxxx/'

When I don't fill the dialog this error is produced:

$ git fetch --prune origin --verbose

fatal: User cancelled the authentication prompt.
error: unable to read askpass response from 'C:\Users\me\AppData\Local\Fork\app-1.75.0\Fork.AskPass.exe'
Cancel background fetch...
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://git.overleaf.com': No such file or directory

I tried this solution https://stackoverflow.com/questions/59293055/why-do-i-have-problems-with-loging-in-to-overleaf-via-git but it didn't help, just the error message is now different:

$ git fetch --prune origin --verbose

fatal: User cancelled the authentication prompt.
error: unable to read askpass response from 'C:\Users\me\AppData\Local\Fork\app-1.75.0\Fork.AskPass.exe'
Cancel background fetch...
error: failed to execute prompt script (exit code 1)
fatal: could not read Password for 'https://user@email.com@git.overleaf.com': No such file or directory

Sometimes I don't even have to fill the prompt for a successful fetch:


fatal: User cancelled the authentication prompt.
From https://git.overleaf.com/xxxxxxxxxxxxxxxxxxxxxxxxxxx
 = [up to date]      master     -> origin/master
DanPristupov commented 2 years ago

Hi,

How does the repository url look like? Did you try to specify the username in it like following: https://username@git.overleaf.com/xxxx?

DanPristupov commented 2 years ago

I tried this solution https://stackoverflow.com/questions/59293055/why-do-i-have-problems-with-loging-in-to-overleaf-via-git but it didn't help, just the error message is now different:

It will work if you switch Fork to your local git instance

rk-exxec commented 2 years ago

Hi,

How does the repository url look like? Did you try to specify the username in it like following: https://username@git.overleaf.com/xxxx?

Isn't that what the StackOverflow solution suggests? or is it different

I tried this solution https://stackoverflow.com/questions/59293055/why-do-i-have-problems-with-loging-in-to-overleaf-via-git but it didn't help, just the error message is now different:

It will work if you switch Fork to your local git instance

I executed the commands in the fork git shell for the repository, does this make a difference?

DanPristupov commented 2 years ago

Fork may override the credential manager when you use the internal git instance.

Do you see the password prompt when you run git fetch origin in command line?

rk-exxec commented 2 years ago

Sorry for the delay, the message didn't show for a while. But yes, when I use the command line it also shows the authentication dialog.