From d3abe103de69126eb1c9e2cd66654660cd4f31f9 Mon Sep 17 00:00:00 2001 From: "Christian R. Garcia" Date: Fri, 22 Nov 2024 18:10:02 -0800 Subject: [PATCH] username --- service/api_pods_podid_func.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/api_pods_podid_func.py b/service/api_pods_podid_func.py index ccab2ce..05030ad 100644 --- a/service/api_pods_podid_func.py +++ b/service/api_pods_podid_func.py @@ -268,8 +268,9 @@ def is_logged_in(cookies): If so: return True, username, roles Otherwise: return False, None, None """ - if 'username' in cookies: - return True, cookies['username'], cookies['roles'] + logger.debug(f"Checking if logged in: {cookies}") + if 'X-Tapis-Username' in cookies: + return True, cookies['X-Tapis-Username'], cookies['roles'] return False, None, None