Skip to content

Commit

Permalink
force https redirect_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
seplee committed Apr 14, 2024
1 parent 4685141 commit e7438cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7438cc

Please sign in to comment.