Skip to content

Commit

Permalink
changes in scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Sep 14, 2024
1 parent c123aef commit 268f179
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,15 @@ def get_google_token(request, token=None):
"client_id": os.getenv("GOOGLE_CLIENT_ID", ""),
"redirect_uri": os.getenv("GOOGLE_REDIRECT_URL", ""),
"access_type": "offline", # we need offline access to receive refresh token and avoid total expiration
"scope": "calendar.events,meetings.space.readonly,meetings.space.created,drive.readonly",
"scope": " ".join(
[
"https://www.googleapis.com/auth/meetings.space.created",
"https://www.googleapis.com/auth/meetings.space.readonly",
"https://www.googleapis.com/auth/drive.meet.readonly",
"https://www.googleapis.com/auth/calendar.events",
]
),
# "scope": "calendar.events,meetings.space.readonly,meetings.space.created,drive.readonly",
"state": f"token={token.key}&url={url}",
}

Expand Down

0 comments on commit 268f179

Please sign in to comment.