Skip to content

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

patch rippling sso

Maidul Islamc9ca59dedfc5
diff --git a/backend/src/ee/routes/v1/saml-router.ts b/backend/src/ee/routes/v1/saml-router.ts
index a8e29d08cc..96ee2408db 100644
--- a/backend/src/ee/routes/v1/saml-router.ts
+++ b/backend/src/ee/routes/v1/saml-router.ts
@@ -71,9 +71,12 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
try {
const serverCfg = getServerCfg();
if (!profile) throw new BadRequestError({ message: "Missing profile" });
- const { email, firstName } = profile;
- if (!email || !firstName)
+ const { firstName } = profile;
+ const email = profile?.email ?? profile?.emailAddress as string // emailRippling is added because in Rippling the field `email` reserved
+
+ if (!email || !firstName){
throw new BadRequestError({ message: "Invalid request. Missing email or first name" });
+ }
const { isUserCompleted, providerAuthToken } = await server.services.saml.samlLogin({
email,