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 fe0b685 commit 2110463
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ 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": "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
7 changes: 6 additions & 1 deletion breathecode/services/google_meet/google_meet.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ class ListParticipantsRequest(TypedDict):


# Scopes for Google Calendar API (used for creating Google Meet links)
SCOPES = ["https://www.googleapis.com/auth/calendar"]
# https://www.googleapis.com/auth/meetings.space.created
# https://www.googleapis.com/auth/meetings.space.readonly
# SCOPES = [
# "google.apps.meet.v2.SpacesService.CreateSpace",
# "google.apps.meet.v2.SpacesService.GetSpace",
# ]
TOKEN_FILE_NAME = "google_cloud_oauth_token.pickle"
GOOGLE_CLIENT_SECRET = "client_secret.json"

Expand Down

0 comments on commit 2110463

Please sign in to comment.