From 0484947e0a1e9f92ffa3caa246c928d96f2a9136 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Thu, 17 Nov 2022 15:55:13 -0500 Subject: [PATCH] * Cloud: Recorded the creation of ODU-specific oauth2 client ID for rclone->gdrive access. --- cloud-storage/20221116.gdrive-client-id.md | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 cloud-storage/20221116.gdrive-client-id.md diff --git a/cloud-storage/20221116.gdrive-client-id.md b/cloud-storage/20221116.gdrive-client-id.md new file mode 100644 index 0000000..c82e4b1 --- /dev/null +++ b/cloud-storage/20221116.gdrive-client-id.md @@ -0,0 +1,75 @@ +Creating ODU's own google drive rclone client ID +================================================ + +> This is an internal ITS notes. + +* Date: 2022-11-16 +* Executor: Wirawan Purwanto + +Log of action for creating new client_id +---------------------------------------- + +(Links below assumed that user ID 1 is the ODU user ID) + +Starting point: +https://console.cloud.google.com/projectselector2/apis/dashboard?authuser=1&supportedpurview=project + +* Select a project => a popup dialog box + - Select from: [ODU.EDU] + - Click "NEW PROJECT" + - Created a new project named "ODU-RCS-rclone" + +* Enable API & Services + - Enable "Google Drive API" + +* Go to "Credentials" tab (on left sidebar) + https://console.cloud.google.com/apis/credentials?authuser=1&project=odu-rcs-rclone&supportedpurview=project + + - Click the "Configure Consent Screen" button + - Select "Internal" user type + +* App information (for the consent screen) + + - App name: rclone for ODU research computing + - User support email: wpurwant@odu.edu + - App logo: ODU-logo-120px.png + + App domain: + - Application home page: https://odu.edu/hpc + - Application privacy policy link: (blank) + - Application terms of service link: (blank) + + Authorized domains: + - odu.edu + + Developer contact into: + - Email: wpurwant@odu.edu + +* (next page) Scopes + + Added the following access: + + Google Drive API .../auth/drive See, edit, create, and delete all of your Google Drive files + Google Drive API .../auth/drive.appdata See, create, and delete its own configuration data in your Google Drive + Google Drive API .../auth/drive.file See, edit, create, and delete only the specific Google Drive files you use with this app + Google Drive API .../auth/drive.metadata View and manage metadata of files in your Google Drive + Google Drive API .../auth/drive.metadata.readonly See information about your Google Drive files + Google Drive API .../auth/drive.photos.readonly View the photos, videos and albums in your Google Photos + Google Drive API .../auth/drive.readonly See and download all your Google Drive files + Google Drive API .../auth/drive.activity View and add to the activity record of files in your Google Drive + + All of the scopes above are sensitive except: drive.appdata and drive.file . + +* Go back to the "Credentials" tab + +* Now press "Create Credentials" + - Choose type: OAuth Client ID + - Application type: Desktop App + - Name: rclone client for ODU research computing + + +Obtained the following ID: + + - Your Client ID: 605919805393-odnfmddo2v24ffodmg80j6ht4oi4kftn.apps.googleusercontent.com + - Your Client Secret: GOCSPX-###REDACTED### +