When you mount Google Drive (or G Suite) volume in Varasto, you'll be asked for these details:
Drive folder ID
Client ID & client secret
This document covers how we obtain these values.
Create a folder in Drive¶
Varasto stores all your blobs in Drive inside one folder - let's create it now. (Drive has no limit of files per folder and it is not a performance issue.)
If you named your volume
Example, I recommend you name your folder in Drive
varasto-example for clarity (the name is technically arbitrary).
Open the folder to discover its ID from URL:
In my case my ID was
1znjU234YCcLW96u6_WrZtms2vFvGy55e. Specify this as
Drive folder ID
Create an API app in Google developers¶
Unfortunately, Google has not done this super easy.. First we need to define an "application" at Google's side that "owns" the user credentials you'll access your Drive files with.
Create new project (or use a default project that there exists if you prefer), maybe good name is
Google Drive API
Project > Credentials, we need to configure
OAuth consent screen:
User type =
Application name =
Varasto(this is arbitrary name, but it's good to be clear)
No other details are needed - press
[ Save ]
Next, we need to create credentials for the project (these are not user credentials yet).
Project > Credentials:
Create credentials > OAuth client ID
Application type =
Other. Name =
You'll now have
Client ID and
Client secret. Paste these into Varasto.
When you've entered folder ID, client id+secret in Varasto, you'll be redirected to Google to authorize the API app that you just created to access Drive files on the user's behalf:
After allowing, you'll receive an authorization code that you'll paste back to Varasto. You're now done. 🎉