From 04daf0de714fc34128ecd344a982d491ad167b61 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 23 Feb 2026 16:24:59 +0200 Subject: [PATCH] upgrade google drive oauth scope to drive --- .../app/routes/google_drive_add_connector_route.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/surfsense_backend/app/routes/google_drive_add_connector_route.py b/surfsense_backend/app/routes/google_drive_add_connector_route.py index 6b4159d29..54d4ea96e 100644 --- a/surfsense_backend/app/routes/google_drive_add_connector_route.py +++ b/surfsense_backend/app/routes/google_drive_add_connector_route.py @@ -76,9 +76,9 @@ def get_token_encryption() -> TokenEncryption: # Google Drive OAuth scopes SCOPES = [ - "https://www.googleapis.com/auth/drive.readonly", # Read-only access to Drive - "https://www.googleapis.com/auth/userinfo.email", # User email - "https://www.googleapis.com/auth/userinfo.profile", # User profile + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/userinfo.email", + "https://www.googleapis.com/auth/userinfo.profile", "openid", ]