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
misc: added handling of inactive and undefined oidc config
Sheen Capadnganbcd65333c0a0
diff --git a/backend/src/ee/services/oidc/oidc-config-service.ts b/backend/src/ee/services/oidc/oidc-config-service.tsindex b880c8664b..7c4b7e87e9 100644--- a/backend/src/ee/services/oidc/oidc-config-service.ts+++ b/backend/src/ee/services/oidc/oidc-config-service.ts@@ -510,6 +510,12 @@ export const oidcConfigServiceFactory = ({orgSlug});+ if (!oidcCfg || !oidcCfg.isActive) {+ throw new BadRequestError({+ message: "Failed to authenticate with OIDC SSO"+ });+ }+const openIdIssuer = new OpenIdIssuer({issuer: oidcCfg.issuer,authorization_endpoint: oidcCfg.authorizationEndpoint,