Skip to content

Commit

Permalink
Google login
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed Jun 13, 2024
1 parent 74d7776 commit f938a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapi/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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(
Expand Down

0 comments on commit f938a90

Please sign in to comment.