Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: moved integration auth to params

Sheen Capadngancf1070c65eb2
diff --git a/backend/src/server/routes/v1/integration-auth-router.ts b/backend/src/server/routes/v1/integration-auth-router.ts
index 5e652283c9..e00e06b775 100644
--- a/backend/src/server/routes/v1/integration-auth-router.ts
+++ b/backend/src/server/routes/v1/integration-auth-router.ts
@@ -97,7 +97,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
bearerAuth: []
}
],
- querystring: z.object({
+ params: z.object({
integrationAuthId: z.string().trim().describe(INTEGRATION_AUTH.UPDATE_BY_ID.integrationAuthId)
}),
body: z.object({
@@ -126,7 +126,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
actor: req.permission.type,
actorAuthMethod: req.permission.authMethod,
actorOrgId: req.permission.orgId,
- integrationAuthId: req.query.integrationAuthId,
+ integrationAuthId: req.params.integrationAuthId,
...req.body
});