Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Adress greptile comments

Carlos Monastyrski39d80294319f
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx
index a9af194a5f..ca33f1718e 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx
@@ -75,6 +75,10 @@ export const OrgGeneralAuthSection = ({
type: "success"
});
+ handlePopUpToggle("enforceSamlSsoConfirmation", false);
+ setBypassEnabledInModal(false);
+ setEnforcementTypeInModal(null);
+
await logout.mutateAsync();
window.open(`/api/v1/sso/redirect/saml2/organizations/${currentOrg.slug}`);
window.close();
@@ -89,14 +93,14 @@ export const OrgGeneralAuthSection = ({
type: "success"
});
+ handlePopUpToggle("enforceSamlSsoConfirmation", false);
+ setBypassEnabledInModal(false);
+ setEnforcementTypeInModal(null);
+
await logout.mutateAsync();
window.open(`/api/v1/sso/redirect/google?org_slug=${currentOrg.slug}`);
window.close();
}
-
- handlePopUpToggle("enforceSamlSsoConfirmation", false);
- setBypassEnabledInModal(false);
- setEnforcementTypeInModal(null);
} catch (err) {
console.error(err);
createNotification({
@@ -434,16 +438,14 @@ export const OrgGeneralAuthSection = ({
)}
<div className="mt-6 flex gap-2">
- <ModalClose asChild>
- <Button
- onClick={handleEnforceSsoConfirm}
- className="mr-4"
- size="sm"
- colorSchema="primary"
- >
- Enable Enforcement
- </Button>
- </ModalClose>
+ <Button
+ onClick={handleEnforceSsoConfirm}
+ className="mr-4"
+ size="sm"
+ colorSchema="primary"
+ >
+ Enable Enforcement
+ </Button>
<ModalClose asChild>
<Button
colorSchema="secondary"