mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-01 10:11:51 +00:00
dont set org mapping by default
This commit is contained in:
@@ -154,16 +154,11 @@ export async function createOrgOidcIdp(
|
|||||||
variant
|
variant
|
||||||
});
|
});
|
||||||
|
|
||||||
const orgMapping =
|
|
||||||
orgMappingBody !== undefined
|
|
||||||
? orgMappingBody
|
|
||||||
: `'${orgId}'`;
|
|
||||||
|
|
||||||
await trx.insert(idpOrg).values({
|
await trx.insert(idpOrg).values({
|
||||||
idpId: idpRes.idpId,
|
idpId: idpRes.idpId,
|
||||||
orgId: orgId,
|
orgId: orgId,
|
||||||
roleMapping: roleMapping || null,
|
roleMapping: roleMapping || null,
|
||||||
orgMapping
|
orgMapping: orgMappingBody
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ export async function importOrgIdp(
|
|||||||
idpId,
|
idpId,
|
||||||
orgId: targetOrgId,
|
orgId: targetOrgId,
|
||||||
roleMapping: null,
|
roleMapping: null,
|
||||||
orgMapping: `'${targetOrgId}'`
|
orgMapping: null
|
||||||
});
|
});
|
||||||
|
|
||||||
const redirectUrl = await generateOidcRedirectUrl(idpId, targetOrgId);
|
const redirectUrl = await generateOidcRedirectUrl(idpId, targetOrgId);
|
||||||
|
|||||||
Reference in New Issue
Block a user