Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: addressed comments

Sheen Capadngan25a9f78116c0
diff --git a/backend/src/ee/services/permission/permission-fns.ts b/backend/src/ee/services/permission/permission-fns.ts
index 156ab1f96d..44e1dea17d 100644
--- a/backend/src/ee/services/permission/permission-fns.ts
+++ b/backend/src/ee/services/permission/permission-fns.ts
@@ -220,7 +220,8 @@ function validateOrgSSO(
// case: google sso is enforced, but the actor is not using google sso
if (isOrgGoogleSsoEnforced && actorAuthMethod !== null && actorAuthMethod !== AuthMethod.GOOGLE) {
throw new ForbiddenRequestError({
- name: "Org auth enforced. Cannot access org-scoped resource. Login with Google SSO to access this resource."
+ message:
+ "Organization authentication is enforced. Cannot access org-scoped resource. Login with Google SSO to access this resource."
});
}
@@ -232,7 +233,8 @@ function validateOrgSSO(
actorAuthMethod !== AuthMethod.OIDC
) {
throw new ForbiddenRequestError({
- name: "Org auth enforced. Cannot access org-scoped resource. Login with SAML SSO to access this resource."
+ message:
+ "Organization authentication is enforced. Cannot access org-scoped resource. Login with SAML SSO to access this resource."
});
}
}