Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asgi_auth_github/github_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ async def auth_callback(self, scope, receive, send):
def make_redirect_cookie(self, scope):
"""cookie to tell browser where to redirect post authentication"""
redirect_cookie = SimpleCookie()
redirect_cookie[self.redirect_cookie_name] = scope["path"]
redirect_cookie[self.redirect_cookie_name] = scope["root_path"] + scope["path"]
redirect_cookie[self.redirect_cookie_name]["path"] = "/"
return redirect_cookie

Expand Down