This is an automated email from the ASF dual-hosted git repository.

lahirujayathilake pushed a commit to branch auth-endpoints-web
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git

commit 451a486d4dfef23de7188f6e7344f7081b0ff54d
Author: lahiruj <[email protected]>
AuthorDate: Wed Jun 17 00:35:24 2026 -0400

    Drop X-Custos-User-Id fallback header from the proxy
---
 web/src/app/api/v1/[...path]/route.ts | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/web/src/app/api/v1/[...path]/route.ts 
b/web/src/app/api/v1/[...path]/route.ts
index 32e8d630d..ccdb406a5 100644
--- a/web/src/app/api/v1/[...path]/route.ts
+++ b/web/src/app/api/v1/[...path]/route.ts
@@ -47,9 +47,6 @@ async function proxy(request: NextRequest, ctx: Context) {
       return NextResponse.json({ message: "Not authenticated" }, { status: 401 
});
     }
     headers.set("authorization", `Bearer ${session.accessToken}`);
-    // Backend reads caller identity from this header until a JWT-verifying
-    // middleware lands; harmless when ignored.
-    if (session.userId) headers.set("x-custos-user-id", session.userId);
   }
 
   const method = request.method;

Reply via email to