From a883bb30d4fcabf39a42798e1a5108f41263fc19 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Wed, 13 May 2026 09:38:19 +0200 Subject: [PATCH] chore: SAML ACS URL is only shown if the email domain is configured (#11144) Co-authored-by: alejandrobailo --- ui/CHANGELOG.md | 1 + .../integrations/saml/saml-config-form.tsx | 23 ++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index 9c50fcb00c..8ea4ee3b73 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to the **Prowler UI** are documented in this file. - Trimmed unused npm dependencies [(#11115)](https://github.com/prowler-cloud/prowler/pull/11115) - Attack Paths graph now uses React Flow with improved layout, interactions, export, minimap, and browser test coverage [(#10686)](https://github.com/prowler-cloud/prowler/pull/10686) +- SAML ACS URL is only shown if the email domain is configured [(#11144)](https://github.com/prowler-cloud/prowler/pull/11144) --- diff --git a/ui/components/integrations/saml/saml-config-form.tsx b/ui/components/integrations/saml/saml-config-form.tsx index daeb301832..a995fffceb 100644 --- a/ui/components/integrations/saml/saml-config-form.tsx +++ b/ui/components/integrations/saml/saml-config-form.tsx @@ -253,9 +253,10 @@ export const SamlConfigForm = ({ reader.readAsText(file); }; - const acsUrl = emailDomain - ? `${apiBaseUrl}/accounts/saml/${emailDomain}/acs/` - : `${apiBaseUrl}/accounts/saml/your-domain.com/acs/`; + const trimmedEmailDomain = emailDomain.trim(); + const acsUrl = trimmedEmailDomain + ? `${apiBaseUrl}/accounts/saml/${trimmedEmailDomain}/acs/` + : ""; return (
ACS URL: - + {acsUrl ? ( + + ) : ( +

+ Enter your email domain above to generate the ACS URL. +

+ )}