add google pse support

This commit is contained in:
Taylor Wilsdon
2025-07-30 09:52:10 -04:00
parent 33c6484a74
commit f77f4d742d
5 changed files with 260 additions and 4 deletions

View File

@@ -51,6 +51,9 @@ SLIDES_READONLY_SCOPE = 'https://www.googleapis.com/auth/presentations.readonly'
TASKS_SCOPE = 'https://www.googleapis.com/auth/tasks'
TASKS_READONLY_SCOPE = 'https://www.googleapis.com/auth/tasks.readonly'
# Google Custom Search API scope
CUSTOM_SEARCH_SCOPE = 'https://www.googleapis.com/auth/cse'
# Base OAuth scopes required for user identification
BASE_SCOPES = [
USERINFO_EMAIL_SCOPE,
@@ -108,5 +111,9 @@ TASKS_SCOPES = [
TASKS_READONLY_SCOPE
]
CUSTOM_SEARCH_SCOPES = [
CUSTOM_SEARCH_SCOPE
]
# Combined scopes for all supported Google Workspace operations
SCOPES = list(set(BASE_SCOPES + CALENDAR_SCOPES + DRIVE_SCOPES + GMAIL_SCOPES + DOCS_SCOPES + CHAT_SCOPES + SHEETS_SCOPES + FORMS_SCOPES + SLIDES_SCOPES + TASKS_SCOPES))
SCOPES = list(set(BASE_SCOPES + CALENDAR_SCOPES + DRIVE_SCOPES + GMAIL_SCOPES + DOCS_SCOPES + CHAT_SCOPES + SHEETS_SCOPES + FORMS_SCOPES + SLIDES_SCOPES + TASKS_SCOPES + CUSTOM_SEARCH_SCOPES))