mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #1396 from Infisical/azure-saml
Add disableRequestedAuthnContext for azure saml
This commit is contained in:
@@ -28,6 +28,7 @@ type TSAMLConfig = {
|
|||||||
cert: string;
|
cert: string;
|
||||||
audience: string;
|
audience: string;
|
||||||
wantAuthnResponseSigned?: boolean;
|
wantAuthnResponseSigned?: boolean;
|
||||||
|
disableRequestedAuthnContext?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const registerSamlRouter = async (server: FastifyZodProvider) => {
|
export const registerSamlRouter = async (server: FastifyZodProvider) => {
|
||||||
@@ -77,6 +78,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) {
|
||||||
|
samlConfig.disableRequestedAuthnContext = true;
|
||||||
if (req.body?.RelayState && JSON.parse(req.body.RelayState).spInitiated) {
|
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