Skip to content

Commit

Permalink
Adding functionality so that the logging works in the SRE bot in prod…
Browse files Browse the repository at this point in the history
…uction (#267)
  • Loading branch information
sylviamclaughlin authored Sep 19, 2023
1 parent 4008f0e commit 59895b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ async def logout(request: Request):
# Login route. You will be redirected to the google login page
@handler.get("/login")
async def login(request: Request):
# this is the route that will be called after the user logs in
redirect_uri = request.url_for(
"auth"
) # this is the route that will be called after the user logs in
"auth",
)
if (request.url.__str__()).startswith("https"):
redirect_uri = redirect_uri.__str__().replace("http", "https")
return await oauth.google.authorize_redirect(request, redirect_uri)


Expand Down

0 comments on commit 59895b4

Please sign in to comment.