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 blocking issue for auth admin bypass on selectOrganization
Carlos Monastyrskiecfc8b5f873a
diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.tsindex 0e5ed2ad90..4793058e9b 100644--- a/backend/src/services/auth/auth-login-service.ts+++ b/backend/src/services/auth/auth-login-service.ts@@ -457,7 +457,8 @@ export const authLoginServiceFactory = ({if (selectedOrg.authEnforced &&!isAuthMethodSaml(decodedToken.authMethod) &&- decodedToken.authMethod !== AuthMethod.OIDC+ decodedToken.authMethod !== AuthMethod.OIDC &&+ !(selectedOrg.bypassOrgAuthEnabled && selectedOrgMembership.userRole === OrgMembershipRole.Admin)) {throw new BadRequestError({message: "Login with the auth method required by your organization."