From e7438ccd573f42fd3cc4c209b5040c7b586a91de Mon Sep 17 00:00:00 2001 From: Lee Harrold Date: Sun, 14 Apr 2024 09:56:38 -0400 Subject: [PATCH] force https redirect_uri --- api/backend/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/backend/app.py b/api/backend/app.py index 7d03ddc..da6f415 100644 --- a/api/backend/app.py +++ b/api/backend/app.py @@ -130,10 +130,12 @@ def login(): # Use library to construct the request for Google login and provide # scopes that let you retrieve user's profile from Google - print(f'callback uri: {request.base_url + "/callback"}') + redirect_uri = "https://drive-gooder.com/api" + # print(f'callback uri: {request.base_url + "/callback"}') + print(f'callback uri: {redirect_uri + "/callback"}') request_uri = client.prepare_request_uri( authorization_endpoint, - redirect_uri=request.base_url + "/callback", + redirect_uri=redirect_uri + "/callback", scope=["openid", "email", "profile"], ) return redirect(request_uri)