Skip to content

Commit

Permalink
need the @
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Nov 23, 2024
1 parent 926f23e commit bd1aa25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions service/api_pods_podid_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd1aa25

Please sign in to comment.