From f938a906c6193cecbd91b6057c0e7942e3367bba Mon Sep 17 00:00:00 2001 From: stanislavsulc Date: Thu, 13 Jun 2024 17:42:13 +0200 Subject: [PATCH] Google login --- webapi/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapi/index.py b/webapi/index.py index 0eb7901..039a367 100644 --- a/webapi/index.py +++ b/webapi/index.py @@ -202,7 +202,7 @@ def login(): authorization_endpoint = google_provider_cfg["authorization_endpoint"] request_uri = client.prepare_request_uri( authorization_endpoint, - redirect_uri=request.base_url + "/callback", + redirect_uri=GOOGLE_REDIRECT_URI,#request.base_url scope=["openid", "email", "profile"], ) return redirect(request_uri) @@ -215,7 +215,7 @@ def callback(): token_url, headers, body = client.prepare_token_request( token_endpoint, authorization_response=request.url, - redirect_url=GOOGLE_REDIRECT_URI,#request.base_url, + redirect_url=request.base_url, code=code ) token_response = requests.post(