From e9192d04398632e08470708b2d7afc9f6a0d044b Mon Sep 17 00:00:00 2001 From: xavix-yo Date: Fri, 17 Jul 2026 20:47:25 +0100 Subject: [PATCH] gmail: add OAuth deliver block to manifest + index connector.json: auth.deliver declares {as, format, path} so Skald can write the Google authorized_user JSON without hardcoding paths. connectors.json: gmail entry gains auth {type, provider, scopes} for UI badge rendering without downloading the full manifest. No changes to email, ssh, or tavily connectors. --- connectors/connectors.json | 8 ++++++++ connectors/gmail/connector.json | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/connectors/connectors.json b/connectors/connectors.json index 8f994ea..022f014 100644 --- a/connectors/connectors.json +++ b/connectors/connectors.json @@ -19,6 +19,14 @@ "local", "google" ], + "auth": { + "type": "oauth2", + "provider": "google", + "scopes": [ + "https://www.googleapis.com/auth/gmail.modify", + "https://www.googleapis.com/auth/gmail.labels" + ] + }, "folder": "gmail", "files": [ { diff --git a/connectors/gmail/connector.json b/connectors/gmail/connector.json index 0459888..ed84b4e 100644 --- a/connectors/gmail/connector.json +++ b/connectors/gmail/connector.json @@ -52,6 +52,11 @@ "scopes": [ "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.labels" - ] + ], + "deliver": { + "as": "file", + "format": "google_authorized_user", + "path": "{secrets}/gmail_creds.json" + } } } \ No newline at end of file