From bd1aa259a571ea45bfcc4a51eb2d9bc8f7c52e06 Mon Sep 17 00:00:00 2001 From: "Christian R. Garcia" Date: Fri, 22 Nov 2024 18:51:26 -0800 Subject: [PATCH] need the @ --- 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 efe3092..2e40bb0 100644 --- a/service/api_pods_podid_func.py +++ b/service/api_pods_podid_func.py @@ -342,11 +342,12 @@ async def pod_auth(pod_id_net, request: Request): else: authenticated, xTapisUsername, _ = is_logged_in(request.cookies) + username = xTapisUsername + "@tapis.io" # if already authenticated, return 200, which will allow the request to continue in Traefik if authenticated: - logger.debug(f"GET /pods/{pod_id_net}/auth - pod-auth, already authenticated X-Tapis-Username: {xTapisUsername}") + logger.debug(f"GET /pods/{pod_id_net}/auth - pod-auth, already authenticated X-Tapis-Username: {username}") #return {'code': 200} #result = {'path':'/', 'code': 302} - return JSONResponse(content="Already authenticated", status_code=200, headers={"X-Tapis-Username": xTapisUsername}) + return JSONResponse(content="Already authenticated", status_code=200, headers={"X-Tapis-Username": username}) # if not authenticated, start the OAuth flow pod = Pod.db_get_with_pk(pod_id, tenant=g.request_tenant_id, site=g.site_id)