drive-cli icon indicating copy to clipboard operation
drive-cli copied to clipboard

can't authorized through remote machines on cli.

Open pankaj151 opened this issue 5 years ago • 3 comments

so i was trying this sweet cli tool for moving local-data to the drive but it seems it's not passing the parameters of usual " --noauth_local_webserver" any way following is the output.

/home/ubuntu/.local/lib/python3.8/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/ubuntu/gist/drive-cli/drive_cli/token.json: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename))

Your browser has been opened to visit:

https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxxxxgoogleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&access_type=offline&response_type=code

If your browser is on a different machine then exit and re-run this application with the command-line parameter

--noauth_local_webserver

^C

pankaj151 avatar Jul 01 '20 16:07 pankaj151

--noauth_local_webserver this parameter just does not work

bmwant avatar Jul 07 '20 18:07 bmwant

use the --remote flag

grgcnnr avatar Aug 18 '20 23:08 grgcnnr

@grgcnnr thanks I was able to do that

$ drive --remote login

image

bmwant avatar Aug 20 '20 16:08 bmwant