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