simonw / google-drive-to-sqlite

Create a SQLite database containing metadata from Google Drive
https://datasette.io/tools/google-drive-to-sqlite
Apache License 2.0
152 stars 13 forks source link

chmod 600 auth.json #37

Closed simonw closed 2 years ago

simonw commented 2 years ago

Just in case someone creates it on a shared machine - want to avoid it being readable by any other users.

simonw commented 2 years ago

Manually tested:

% google-drive-to-sqlite auth
Visit the following URL to authenticate with Google Drive

https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&client_id=148933860554-98i3hter1bsn24sa6fcq1tcrhcrujrnl.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly

Then return here and paste in the resulting code:
Paste code here: 
% ls -lah auth.json          
-rw-------@ 1 simon  staff   172B Feb 20 12:03 auth.json