refactored and simplified obtaining credentials

This commit is contained in:
msramalho
2022-07-25 14:52:50 +01:00
parent 524b40b869
commit 6124bc5f72
5 changed files with 26 additions and 26 deletions

View File

@@ -18,15 +18,18 @@ secrets:
# needed if you use storage=gd
google_drive:
# 1.service account to write to google storage - be aware of 15GB limit. Recommend using OAuth user.
# filename can be the same or different file from google_sheets.service_account
# To authenticate with google you have two options (1. service account OR 2. OAuth token)
# 1. service account - storage space will count towards the developer account
# filename can be the same or different file from google_sheets.service_account, defaults to "service_account.json"
# service_account: "service_account.json"
# 2.token (only 1. or 2. - if both specified then this 2. token takes precedence)
# will need to have write access on the server so refresh flow works
# run the file `create_update_test_oauth_token.py` to create the token and save in a secrets directory so
# it is not checked into source control
oauth_token_file_path_and_name: "secrets/token-davemateer-gmail.json"
# 2. OAuth token - storage space will count towards the owner of the GDrive folder
# (only 1. or 2. - if both specified then this 2. takes precedence)
# needs write access on the server so refresh flow works
# To get the token, run the file `create_update_test_oauth_token.py`
# you can edit that file if you want a different token filename, default is "gd-token.json"
oauth_token_filename: "gd-token.json"
root_folder_id: copy XXXX from https://drive.google.com/drive/folders/XXXX