mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 01:16:49 +00:00
Fix Google SSO issue with SAML configs when SSO is enforced and not SAML
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user