mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-01 02:01:56 +00:00
dont set org mapping by default
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ export async function importOrgIdp(
|
||||
idpId,
|
||||
orgId: targetOrgId,
|
||||
roleMapping: null,
|
||||
orgMapping: `'${targetOrgId}'`
|
||||
orgMapping: null
|
||||
});
|
||||
|
||||
const redirectUrl = await generateOidcRedirectUrl(idpId, targetOrgId);
|
||||
|
||||
Reference in New Issue
Block a user