Instead of opening a browser on the server were is running the software,
it would be nice just to print the url for verification.
So I can open it on another computer and get the credentials and then put them in the app.
gdrive works perfectly... can you do as gdrive does?
You already can do it:
https://github.com/astrada/google-drive-ocamlfuse/wiki/Headless-Usage-&-Authorization
Use the -headless option
Yes, but is badly implemented.
gdrive is straight forward, just pits out the url and then waits for the token.
That's how it should be.
(IMHO)
simple workaround:
create /usr/local/bin/google-chrome script which prints its first argument to stderr:
#!/bin/bash
>&2 echo $1
and chmod +x /usr/local/bin/google-chrome
on older versions, when it failed to open the url, it would wait for a token, id open a browser elsewhere, authenticate, and it was a toss as to whether or not gd-ocaml would take it. but @ewnjtgouierg's solution is awesome
Service accounts are now supported (as of v0.7.11).
Most helpful comment
simple workaround:
create
/usr/local/bin/google-chromescript which prints its first argument to stderr:and
chmod +x /usr/local/bin/google-chrome