Spaces:
Runtime error
Runtime error
adding uri's to google console
Browse files
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 = "
|
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 = "
|
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)
|