mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Correct spInitiated spelling in Azure SAML
This commit is contained in:
@@ -67,7 +67,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
|
|||||||
throw new BadRequestError({ message: "Failed to authenticate with SAML SSO" });
|
throw new BadRequestError({ message: "Failed to authenticate with SAML SSO" });
|
||||||
|
|
||||||
const samlConfig: TSAMLConfig = {
|
const samlConfig: TSAMLConfig = {
|
||||||
callbackUrl: `${appCfg.SITE_URL}/api/v1/sso/saml2/${samlConfigId}`,
|
callbackUrl: `${appCfg.SITE_URL}/api/v1/sso/saml2/${ssoConfig.id}`,
|
||||||
entryPoint: ssoConfig.entryPoint,
|
entryPoint: ssoConfig.entryPoint,
|
||||||
issuer: ssoConfig.issuer,
|
issuer: ssoConfig.issuer,
|
||||||
cert: ssoConfig.cert,
|
cert: ssoConfig.cert,
|
||||||
@@ -77,7 +77,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
|
|||||||
samlConfig.wantAuthnResponseSigned = false;
|
samlConfig.wantAuthnResponseSigned = false;
|
||||||
}
|
}
|
||||||
if (ssoConfig.authProvider === SamlProviders.AZURE_SAML) {
|
if (ssoConfig.authProvider === SamlProviders.AZURE_SAML) {
|
||||||
if (req.body.RelayState && JSON.parse(req.body.RelayState).spIntiaited) {
|
if (req.body?.RelayState && JSON.parse(req.body.RelayState).spInitiated) {
|
||||||
samlConfig.audience = `spn:${ssoConfig.issuer}`;
|
samlConfig.audience = `spn:${ssoConfig.issuer}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user