Skip to content

Commit

Permalink
fuller log
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Nov 21, 2024
1 parent 684b8dc commit 962f914
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/api_pods_podid_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ async def pod_auth(pod_id_net, request: Request):
client_description = f"Tapis Pods Service Pod: {pod_id}"

oauth2_url = f"https://{tapis_domain}/v3/oauth2/authorize?client_id={client_id}&redirect_uri={auth_callback_url}&response_type=code"

return JSONResponse(content = f"tenant_id: {g.request_tenant_id}, tenant: {tapis_tenant} beep: {t.base_url}", status_code = 302)
logger.debug(f"GET /pods/{pod_id_net}/auth - pod-auth, headers: {request.headers}, request.cookies: {request.cookies}, tenant_id: {g.request_tenant_id}, derived_tenant_id: {tenant_id}, site_id: {g.site_id}")

# Create tapis client or update tapis client if needed
try:
Expand Down Expand Up @@ -442,8 +442,8 @@ def callback(pod_id_net, request: Request):

pod_id, tapis_domain = net_info['url'].split('.pods.') ## Should return `mypod` & `tacc.tapis.io` with proper tenant and schmu

#return JSONResponse(content = f"Callback for pod_id_net: {pod_id_net}, tapis_domain: {tapis_domain}", status_code = 200)
#return JSONResponse(content = str(dir(request)))
return JSONResponse(content = f"Callback for pod_id_net: {pod_id_net}, tapis_domain: {tapis_domain}", status_code = 200)
# return JSONResponse(content = str(dir(request)))
# code = request.args.get('code')
# if not code:
# raise Exception(f"Error: No code in request; debug: {request.args}")
Expand Down

0 comments on commit 962f914

Please sign in to comment.