Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Nov 21, 2024
1 parent 670f9e2 commit 06b13ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions service/api_pods_podid_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,9 @@ def callback(pod_id_net, request: Request):


# return JSONResponse(content = f"Callback for pod_id_net: {pod_id_net}, tapis_domain: {tapis_domain}", status_code = 200)
logger.debug(str(dir(request)))
logger.debug(str(request.query_params))
code = request.query_params.get('code')
code = request.args.get('code')
if not code:
raise Exception(f"Error: No code in request; debug: {request.args}")
raise Exception(f"Error: No code in request; debug: {request.query_params}")
logger.debug(f"GET /pods/{pod_id_net}/auth/callback - pod_auth_callback, code: {code}")
url = f"https://{tapis_domain}/v3/oauth2/tokens"
data = {
Expand Down

0 comments on commit 06b13ef

Please sign in to comment.