google-tasks-vscode-extension icon indicating copy to clipboard operation
google-tasks-vscode-extension copied to clipboard

Auth not working when connected with the Remote-SSH extension

Open tonyo96 opened this issue 5 years ago • 3 comments
trafficstars

For details about the auth error see #3

  • I think the extension should run locally (and not on the remote machine)
  • a simple fix would be copying the local token to the remote machine (see below)

I made a workaround by getting the token on my local machine and copying the token file to the remote one (win --> linux) %USERPROFILE%\.vscode\extensions\krishnapravin.google-tasks-0.1.5\resources\token.json to ~/.vscode-server/extensions/krishnapravin.google-tasks-0.1.5/resources/token.json

tonyo96 avatar Apr 24 '20 17:04 tonyo96

@tonyo96 thank you for letting me know the fix. Initially, I did not consider making the extension to run in a remote machine. I will try to add this functionality.

KrishnaPravin avatar Apr 25 '20 07:04 KrishnaPravin

I experienced this as well.

To "fix" it, I SSH'ed into my server and ran:

curl http://localhost:11223/?code=4/$MYCODE&scope=https://www.googleapis.com/auth/tasks

And it worked!

dufferzafar avatar May 21 '20 08:05 dufferzafar

VS Code is working on Auth API. When it is out the whole auth process might change. https://github.com/microsoft/vscode/issues/88309

But until then to fix the login issue for VS Code running in remote machines, a PR would be really helpful.

KrishnaPravin avatar May 22 '20 04:05 KrishnaPravin