Add missing OAuth scopes and improve documentation
Changes: - Add script.processes and drive.readonly scopes to SCRIPT_SCOPES (required for list_script_processes and list_script_projects) - Update README.md with detailed Google Cloud setup instructions - Add run_script_function API Executable deployment documentation - Create TESTING.md with unit test and E2E testing guides - Update manual_test.py to use configurable credential paths - Add headless Linux authentication flow documentation
This commit is contained in:
@@ -73,6 +73,9 @@ SCRIPT_DEPLOYMENTS_SCOPE = "https://www.googleapis.com/auth/script.deployments"
|
||||
SCRIPT_DEPLOYMENTS_READONLY_SCOPE = (
|
||||
"https://www.googleapis.com/auth/script.deployments.readonly"
|
||||
)
|
||||
SCRIPT_PROCESSES_READONLY_SCOPE = (
|
||||
"https://www.googleapis.com/auth/script.processes"
|
||||
)
|
||||
|
||||
# Base OAuth scopes required for user identification
|
||||
BASE_SCOPES = [USERINFO_EMAIL_SCOPE, USERINFO_PROFILE_SCOPE, OPENID_SCOPE]
|
||||
@@ -114,6 +117,8 @@ SCRIPT_SCOPES = [
|
||||
SCRIPT_PROJECTS_READONLY_SCOPE,
|
||||
SCRIPT_DEPLOYMENTS_SCOPE,
|
||||
SCRIPT_DEPLOYMENTS_READONLY_SCOPE,
|
||||
SCRIPT_PROCESSES_READONLY_SCOPE, # Required for list_script_processes
|
||||
DRIVE_READONLY_SCOPE, # Required for list_script_projects (uses Drive API)
|
||||
]
|
||||
|
||||
# Tool-to-scopes mapping
|
||||
|
||||
Reference in New Issue
Block a user