Skip to content

Commit 3d85751

Browse files
Niloth-ptimabbott
authored andcommitted
google-calendar: Improve CLIENT_SECRET_FILE occurrences.
Removed it from google-calendar script, as it is only used for the first run authorization by get-google-credentials. Edited a comment clarifying its purpose in get-google-credentials.
1 parent 39d4a90 commit 3d85751

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

zulip/integrations/google/get-google-credentials

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ SCOPES = ["https://www.googleapis.com/auth/calendar.events.readonly"]
1111
# File containing user's access and refresh tokens for Google application requests.
1212
# If it does not exist, e.g., first run, it is generated on user authorization.
1313
TOKENS_FILE = "google-tokens.json"
14-
# This file contains the information that google uses to figure out which application is requesting
15-
# this client's data.
14+
# The client secret file identifies the application requesting the client's data,
15+
# and is required for the OAuth flow to fetch the tokens.
16+
# It needs to be downloaded from Google, by the user.
1617
CLIENT_SECRET_FILE = "client_secret.json" # noqa: S105
1718
HOME_DIR = os.path.expanduser("~")
1819

zulip/integrations/google/google-calendar

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ SCOPES = ["https://www.googleapis.com/auth/calendar.events.readonly"]
1818
# File containing user's access and refresh tokens for Google application requests.
1919
# If it does not exist, e.g., first run, it is generated on user authorization.
2020
TOKENS_FILE = "google-tokens.json"
21-
CLIENT_SECRET_FILE = "client_secret.json" # noqa: S105
2221
HOME_DIR = os.path.expanduser("~")
2322

2423
# Our cached view of the calendar, updated periodically.

0 commit comments

Comments
 (0)