Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
turn verified off on scim change
Thiago Araujo da Silva32e1536c7516
diff --git a/backend/e2e-test/routes/v1/scim.spec.ts b/backend/e2e-test/routes/v1/scim.spec.tsindex 9bb9bb4d7b..64f658364d 100644--- a/backend/e2e-test/routes/v1/scim.spec.ts+++ b/backend/e2e-test/routes/v1/scim.spec.ts@@ -764,9 +764,12 @@ describe("SCIM v1 Router", () => {expect(res.statusCode).toBe(200);expect(JSON.parse(res.payload).emails[0].value).toBe(newEmail);- const [row] = await db(TableName.Users).where({ id: user.id }).select("username", "email");+ const [row] = await db(TableName.Users).where({ id: user.id }).select("username", "email", "isEmailVerified");expect(row.username).toBe(newEmail);expect(row.email).toBe(newEmail);+ // Account recovery gates on this flag, so a directory write must not leave the new mailbox+ // able to claim a password reset. The next SSO login re-verifies it.+ expect(row.isEmailVerified).toBe(false);// The old address stays on the alias so a login in flight from before the rename still resolves.const [aliasRow] = await db(TableName.UserAliases).where({ id: alias.id }).select("emails");@@ -786,9 +789,10 @@ describe("SCIM v1 Router", () => {expect(res.statusCode).toBe(200);expect(JSON.parse(res.payload).emails[0].value).toBe(newEmail);- const [row] = await db(TableName.Users).where({ id: user.id }).select("username", "email");+ const [row] = await db(TableName.Users).where({ id: user.id }).select("username", "email", "isEmailVerified");expect(row.username).toBe(newEmail);expect(row.email).toBe(newEmail);+ expect(row.isEmailVerified).toBe(false);});test("should apply an unrelated PATCH when the stored email and username have drifted", async () => {diff --git a/backend/src/ee/services/scim/scim-service.ts b/backend/src/ee/services/scim/scim-service.tsindex afd5a815c9..b5e141e9ca 100644--- a/backend/src/ee/services/scim/scim-service.ts+++ b/backend/src/ee/services/scim/scim-service.ts@@ -804,7 +804,7 @@ export const scimServiceFactory = ({{firstName: scimUser.name.givenName,lastName: scimUser.name.familyName,- ...(newEmail ? { email: newEmail, username: newEmail } : {})+ ...(newEmail ? { email: newEmail, username: newEmail, isEmailVerified: false } : {})},tx);@@ -921,7 +921,7 @@ export const scimServiceFactory = ({{firstName,lastName,- ...(newEmail ? { email: newEmail, username: newEmail } : {})+ ...(newEmail ? { email: newEmail, username: newEmail, isEmailVerified: false } : {})},tx);