mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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 };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user