mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 21:25:45 +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}${
|
url = `/api/v1/sso/oidc/login?orgSlug=${organization.slug}${
|
||||||
callbackPort ? `&callbackPort=${callbackPort}` : ""
|
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}`;
|
url = `/api/v1/sso/redirect/saml2/organizations/${organization.slug}`;
|
||||||
|
|
||||||
if (callbackPort) {
|
if (callbackPort) {
|
||||||
|
|||||||
+3
-2
@@ -204,9 +204,10 @@ export const OrgGeneralAuthSection = ({
|
|||||||
</OrgPermissionCan>
|
</OrgPermissionCan>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm text-mineshaft-300">
|
<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 />
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user