mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 21:27:10 +00:00
Feat: Org Scoped JWT Tokens
This commit is contained in:
@@ -429,6 +429,15 @@ export const scimServiceFactory = ({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const organization = await orgDAL.findById(scimToken.orgId);
|
||||||
|
|
||||||
|
if (!organization.scimEnabled) {
|
||||||
|
throw new ScimRequestError({
|
||||||
|
detail: "SCIM is disabled for the organization",
|
||||||
|
status: 403
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return { scimTokenId: scimToken.id, orgId: scimToken.orgId };
|
return { scimTokenId: scimToken.id, orgId: scimToken.orgId };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user