From a569054e94f3b887a067515895eed8d1fa4865f9 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Fri, 17 Apr 2026 17:25:21 -0700 Subject: [PATCH] dont set org mapping by default --- server/private/routers/orgIdp/createOrgOidcIdp.ts | 7 +------ server/private/routers/orgIdp/importOrgIdp.ts | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/server/private/routers/orgIdp/createOrgOidcIdp.ts b/server/private/routers/orgIdp/createOrgOidcIdp.ts index 2b946d956..97928d99f 100644 --- a/server/private/routers/orgIdp/createOrgOidcIdp.ts +++ b/server/private/routers/orgIdp/createOrgOidcIdp.ts @@ -154,16 +154,11 @@ export async function createOrgOidcIdp( variant }); - const orgMapping = - orgMappingBody !== undefined - ? orgMappingBody - : `'${orgId}'`; - await trx.insert(idpOrg).values({ idpId: idpRes.idpId, orgId: orgId, roleMapping: roleMapping || null, - orgMapping + orgMapping: orgMappingBody }); }); diff --git a/server/private/routers/orgIdp/importOrgIdp.ts b/server/private/routers/orgIdp/importOrgIdp.ts index 88c62cbac..0620a77ed 100644 --- a/server/private/routers/orgIdp/importOrgIdp.ts +++ b/server/private/routers/orgIdp/importOrgIdp.ts @@ -188,7 +188,7 @@ export async function importOrgIdp( idpId, orgId: targetOrgId, roleMapping: null, - orgMapping: `'${targetOrgId}'` + orgMapping: null }); const redirectUrl = await generateOidcRedirectUrl(idpId, targetOrgId);