Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fix Google SSO issue with SAML configs when SSO is enforced and not SAML
Carlos Monastyrski00a522f9d0b5
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsxindex 9e6850f829..aeb38a182d 100644--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx@@ -92,7 +92,11 @@ export const SelectOrganizationSection = () => {url = `/api/v1/sso/oidc/login?orgSlug=${organization.slug}${callbackPort ? `&callbackPort=${callbackPort}` : ""}`;- } else if (organization.orgAuthMethod === AuthMethod.SAML) {+ } else if (+ organization.orgAuthMethod === AuthMethod.SAML &&+ // if google sso is enforced, we don't want to redirect to saml+ !organization.googleSsoAuthEnforced+ ) {url = `/api/v1/sso/redirect/saml2/organizations/${organization.slug}`;if (callbackPort) {diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsxindex 53df91974d..e86f2fb9fd 100644--- a/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx+++ b/frontend/src/pages/organization/SettingsPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx@@ -204,9 +204,10 @@ export const OrgGeneralAuthSection = ({</OrgPermissionCan></div><p className="text-sm text-mineshaft-300">- Enforce users to authenticate via Google to access this organization.+ Enforce users to authenticate via Google OAuth SSO to access this organization.<br />- When this is enabled your organization members will only be able to login with Google.+ When this is enabled your organization members will only be able to login with Google+ OAuth (not Google SAML).</p></div></div>