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.
This commit is contained in:
@@ -19,6 +19,14 @@
|
|||||||
"local",
|
"local",
|
||||||
"google"
|
"google"
|
||||||
],
|
],
|
||||||
|
"auth": {
|
||||||
|
"type": "oauth2",
|
||||||
|
"provider": "google",
|
||||||
|
"scopes": [
|
||||||
|
"https://www.googleapis.com/auth/gmail.modify",
|
||||||
|
"https://www.googleapis.com/auth/gmail.labels"
|
||||||
|
]
|
||||||
|
},
|
||||||
"folder": "gmail",
|
"folder": "gmail",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,6 +52,11 @@
|
|||||||
"scopes": [
|
"scopes": [
|
||||||
"https://www.googleapis.com/auth/gmail.modify",
|
"https://www.googleapis.com/auth/gmail.modify",
|
||||||
"https://www.googleapis.com/auth/gmail.labels"
|
"https://www.googleapis.com/auth/gmail.labels"
|
||||||
]
|
],
|
||||||
|
"deliver": {
|
||||||
|
"as": "file",
|
||||||
|
"format": "google_authorized_user",
|
||||||
|
"path": "{secrets}/gmail_creds.json"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user