diff --git a/service/api_pods_podid_func.py b/service/api_pods_podid_func.py index 0a68738..6a43174 100644 --- a/service/api_pods_podid_func.py +++ b/service/api_pods_podid_func.py @@ -369,6 +369,8 @@ async def pod_auth(pod_id_net, request: Request): 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}, beep: {t.base_url}", status_code = 302) + # Create tapis client or update tapis client if needed try: res, td = t.authenticator.create_client( @@ -378,7 +380,7 @@ async def pod_auth(pod_id_net, request: Request): display_name = client_display_name, description = client_description, _x_tapis_tenant = g.request_tenant_id, - _x_tapis_user = "pods", + _x_tapis_user = "_tapis_pods", _tapis_debug = True ) except BadRequestError as e: # Exceptions in 3 shouldn't have e.message (only e.args), but this one does. @@ -392,7 +394,7 @@ async def pod_auth(pod_id_net, request: Request): display_name = client_display_name, description = client_description, _x_tapis_tenant = g.request_tenant_id, - _x_tapis_user = "pods", + _x_tapis_user = "_tapis_pods", _tapis_debug = True ) # Assuming you want to return a success response after updating diff --git a/service/health_central.py b/service/health_central.py index 1a30fcd..add18ef 100644 --- a/service/health_central.py +++ b/service/health_central.py @@ -254,7 +254,7 @@ def main(): Main function for health checks. """ # Try and run check_db_pods. Will try for 60 seconds until health is declared "broken". - logger.info("Top of health. Checking if db's are initialized.") + logger.info("Top of health central. Checking if db's are initialized.") idx = 0 while idx < 12: try: