zinoubm commited on
Commit
e37e95e
·
1 Parent(s): 8bff5a2

adding uri's to google console

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ async def integrate_google(request: Request):
40
  flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
41
  "credentials.json", scopes=SCOPES
42
  )
43
- flow.redirect_uri = "http://0.0.0.0:8000/auth_callback"
44
  authorization_url, state = flow.authorization_url(
45
  access_type="offline",
46
  include_granted_scopes="true",
@@ -56,7 +56,7 @@ async def auth_callback(request: Request):
56
  flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
57
  "credentials.json", scopes=SCOPES, state=state
58
  )
59
- flow.redirect_uri = "http://0.0.0.0:8000/auth_callback"
60
 
61
  # Use the authorization server's response to fetch the OAuth 2.0 tokens.
62
  authorization_response = str(request.url)
 
40
  flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
41
  "credentials.json", scopes=SCOPES
42
  )
43
+ flow.redirect_uri = "https://gpt-summary-u8pr.onrender.com/auth_callback"
44
  authorization_url, state = flow.authorization_url(
45
  access_type="offline",
46
  include_granted_scopes="true",
 
56
  flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
57
  "credentials.json", scopes=SCOPES, state=state
58
  )
59
+ flow.redirect_uri = "https://gpt-summary-u8pr.onrender.com/auth_callback"
60
 
61
  # Use the authorization server's response to fetch the OAuth 2.0 tokens.
62
  authorization_response = str(request.url)