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
PKCE check logic fix
xb50a022d1182
diff --git a/backend/src/ee/services/oidc/oidc-config-service.ts b/backend/src/ee/services/oidc/oidc-config-service.tsindex ce702fc954..27eeef9ebc 100644--- a/backend/src/ee/services/oidc/oidc-config-service.ts+++ b/backend/src/ee/services/oidc/oidc-config-service.ts@@ -687,8 +687,8 @@ export const oidcConfigServiceFactory = ({// Check if the OIDC provider supports PKCEconst codeChallengeMethods = client.issuer.metadata.code_challenge_methods_supported;- const supportsPKCE =- !codeChallengeMethods || (Array.isArray(codeChallengeMethods) && codeChallengeMethods.includes("S256"));+ // If codeChallengeMethods is undefined or includes "S256", then the provider supports PKCE+ const supportsPKCE = Array.isArray(codeChallengeMethods) && codeChallengeMethods.includes("S256");const strategy = new OpenIdStrategy({