Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth not working when connected with the Remote-SSH extension #5

Open
tonyo96 opened this issue Apr 24, 2020 · 3 comments
Open

Auth not working when connected with the Remote-SSH extension #5

tonyo96 opened this issue Apr 24, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@tonyo96
Copy link

tonyo96 commented Apr 24, 2020

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

@KrishnaPravin
Copy link
Owner

@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.

@dufferzafar
Copy link

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!

@KrishnaPravin
Copy link
Owner

VS Code is working on Auth API. When it is out the whole auth process might change.
microsoft/vscode#88309

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

@KrishnaPravin KrishnaPravin added the bug Something isn't working label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants