mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-04 19:21:51 +00:00
chore: SAML ACS URL is only shown if the email domain is configured (#11144)
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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 (
|
||||
<form
|
||||
@@ -308,11 +309,17 @@ export const SamlConfigForm = ({
|
||||
<span className="mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300">
|
||||
ACS URL:
|
||||
</span>
|
||||
<CodeSnippet
|
||||
value={acsUrl}
|
||||
ariaLabel="Copy ACS URL"
|
||||
className="h-10 w-full"
|
||||
/>
|
||||
{acsUrl ? (
|
||||
<CodeSnippet
|
||||
value={acsUrl}
|
||||
ariaLabel="Copy ACS URL"
|
||||
className="h-10 w-full"
|
||||
/>
|
||||
) : (
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400">
|
||||
Enter your email domain above to generate the ACS URL.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user