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 (