fix: Fix scopes for Google Calendar (#22614)

https://developers.google.com/identity/protocols/oauth2/scopes
This commit is contained in:
Corentin Flr 2023-10-17 04:37:38 +02:00 committed by GitHub
parent c706040c31
commit 2b542d87e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)