From 25c272ae8e33edab808f369c2bc65d0cc7a08342 Mon Sep 17 00:00:00 2001 From: bmccandless Date: Wed, 16 Sep 2020 17:37:52 -0700 Subject: [PATCH] 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// --- server/auth/auth_oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth/auth_oauth.py b/server/auth/auth_oauth.py index 2b4ddf45..a5107934 100644 --- a/server/auth/auth_oauth.py +++ b/server/auth/auth_oauth.py @@ -158,7 +158,7 @@ class AuthTypeOAuth(AuthTypeClientBase): def login(self): callbackurl = f"{self.api_base_url}/oauth2/callback" 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 session["oauth_callback_redirect"] = return_to response = self.client.authorize_redirect(redirect_uri=callbackurl)