From cfa7f271d26e2316bc0bcbdf0b698805b74d90e2 Mon Sep 17 00:00:00 2001 From: Alejandro Bailo <59607668+alejandrobailo@users.noreply.github.com> Date: Tue, 1 Jul 2025 11:50:47 +0200 Subject: [PATCH] fix: Minor changes detected while SAML E2E (#8146) --- .../integrations/forms/saml-config-form.tsx | 142 +++++++++--------- 1 file changed, 69 insertions(+), 73 deletions(-) diff --git a/ui/components/integrations/forms/saml-config-form.tsx b/ui/components/integrations/forms/saml-config-form.tsx index 2eac864947..9c7068b8ff 100644 --- a/ui/components/integrations/forms/saml-config-form.tsx +++ b/ui/components/integrations/forms/saml-config-form.tsx @@ -121,82 +121,26 @@ export const SamlConfigForm = ({ }; const acsUrl = emailDomain - ? `${apiBaseUrl}/saml/sp/consume/${emailDomain}` - : `${apiBaseUrl}/saml/sp/consume/your-domain.com`; + ? `${apiBaseUrl}/accounts/saml/${emailDomain}/acs` + : `${apiBaseUrl}/accounts/saml/your-domain.com/acs`; return ( -
+ -
- ) => { - setEmailDomain(e.target.value); - }} - /> - -
- - Metadata XML File * - - { - const fileInput = document.getElementById( - "metadata_xml_file", - ) as HTMLInputElement; - if (fileInput) { - fileInput.click(); - } - }} - startContent={} - className={`h-10 justify-start rounded-medium border-2 text-default-500 ${ - state?.errors?.metadata_xml - ? "border-red-500" - : uploadedFile.uploaded - ? "border-green-500 bg-green-50 dark:bg-green-900/20" - : "border-default-200" - }`} - > - - {uploadedFile.uploaded ? ( - - {uploadedFile.name} - - ) : ( - "Choose File" - )} - - - - - -

- Upload your Identity Provider's SAML metadata XML file -

- - {state?.errors?.metadata_xml} - -
-
+ ) => { + setEmailDomain(e.target.value); + }} + />

@@ -256,7 +200,59 @@ export const SamlConfigForm = ({

+
+ + Metadata XML File * + + { + const fileInput = document.getElementById( + "metadata_xml_file", + ) as HTMLInputElement; + if (fileInput) { + fileInput.click(); + } + }} + startContent={} + className={`h-10 justify-start rounded-medium border-2 text-default-500 ${ + state?.errors?.metadata_xml + ? "border-red-500" + : uploadedFile.uploaded + ? "border-green-500 bg-green-50 dark:bg-green-900/20" + : "border-default-200" + }`} + > + + {uploadedFile.uploaded ? ( + + {uploadedFile.name} + + ) : ( + "Choose File" + )} + + + + +

+ Upload your Identity Provider's SAML metadata XML file +

+ + {state?.errors?.metadata_xml} + +
);