From 2b542d87e14f0a552f7aa47b8a1cba8dcae6253d Mon Sep 17 00:00:00 2001 From: Corentin Flr <10946971+cogk@users.noreply.github.com> Date: Tue, 17 Oct 2023 04:37:38 +0200 Subject: [PATCH] fix: Fix scopes for Google Calendar (#22614) https://developers.google.com/identity/protocols/oauth2/scopes --- frappe/integrations/doctype/google_calendar/google_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/integrations/doctype/google_calendar/google_calendar.py b/frappe/integrations/doctype/google_calendar/google_calendar.py index 94a8e72142..3f412efc90 100644 --- a/frappe/integrations/doctype/google_calendar/google_calendar.py +++ b/frappe/integrations/doctype/google_calendar/google_calendar.py @@ -214,7 +214,7 @@ def get_google_calendar_object(g_calendar): "token_uri": GoogleOAuth.OAUTH_URL, "client_id": google_settings.client_id, "client_secret": google_settings.get_password(fieldname="client_secret", raise_exception=False), - "scopes": ["https://www.googleapis.com/auth/calendar/v3"], + "scopes": [SCOPES], } credentials = google.oauth2.credentials.Credentials(**credentials_dict)