mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 22:18:11 +08:00
minor fix to auth redirect (#1845)
The previous version added and extra "/" to the url after login: e.g: https://cellxgene.dev.single-cell.czi.technology/d/pbmc3k.cxg//
This commit is contained in:
@@ -158,7 +158,7 @@ class AuthTypeOAuth(AuthTypeClientBase):
|
|||||||
def login(self):
|
def login(self):
|
||||||
callbackurl = f"{self.api_base_url}/oauth2/callback"
|
callbackurl = f"{self.api_base_url}/oauth2/callback"
|
||||||
return_path = request.args.get("dataset", "")
|
return_path = request.args.get("dataset", "")
|
||||||
return_to = f"{self.web_base_url}/{return_path}/"
|
return_to = f"{self.web_base_url}/{return_path}"
|
||||||
# save the return path in the session cookie, accessed in the callback function
|
# save the return path in the session cookie, accessed in the callback function
|
||||||
session["oauth_callback_redirect"] = return_to
|
session["oauth_callback_redirect"] = return_to
|
||||||
response = self.client.authorize_redirect(redirect_uri=callbackurl)
|
response = self.client.authorize_redirect(redirect_uri=callbackurl)
|
||||||
|
|||||||
Reference in New Issue
Block a user