Google-drive-ocamlfuse: Suggestion: get credentials on a server without gui

Created on 13 Apr 2019  路  7Comments  路  Source: astrada/google-drive-ocamlfuse

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.

question

Most helpful comment

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

All 7 comments

gdrive works perfectly... can you do as gdrive does?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ilovetosharing picture ilovetosharing  路  4Comments

JP-Ellis picture JP-Ellis  路  11Comments

kevinjpickard picture kevinjpickard  路  3Comments

Stadtschreck picture Stadtschreck  路  3Comments

smartm0use picture smartm0use  路  4Comments