Skip to content

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

Attempt fix azure samlConfig

Tuan Dangecccec8e35b8
diff --git a/backend/src/utils/auth.ts b/backend/src/utils/auth.ts
index 770139caec..7d30e4a1a3 100644
--- a/backend/src/utils/auth.ts
+++ b/backend/src/utils/auth.ts
@@ -315,6 +315,11 @@ const initializePassport = async () => {
samlConfig.wantAuthnResponseSigned = false;
}
+ if (ssoConfig.authProvider.toString() === AuthMethod.AZURE_SAML.toString()) {
+ samlConfig.wantAuthnResponseSigned = false;
+ samlConfig.audience = `spn:${await getSiteURL()}`;
+ }
+
req.ssoConfig = ssoConfig;
done(null, samlConfig);