Attempt fix azure samlConfig

This commit is contained in:
Tuan Dang
2023-10-17 15:32:34 +01:00
parent 38dbf1e738
commit ecccec8e35

View File

@@ -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);