mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 21:26:17 +00:00
PKCE check logic fix
This commit is contained in:
@@ -687,8 +687,8 @@ export const oidcConfigServiceFactory = ({
|
|||||||
|
|
||||||
// Check if the OIDC provider supports PKCE
|
// Check if the OIDC provider supports PKCE
|
||||||
const codeChallengeMethods = client.issuer.metadata.code_challenge_methods_supported;
|
const codeChallengeMethods = client.issuer.metadata.code_challenge_methods_supported;
|
||||||
const supportsPKCE =
|
// If codeChallengeMethods is undefined or includes "S256", then the provider supports PKCE
|
||||||
!codeChallengeMethods || (Array.isArray(codeChallengeMethods) && codeChallengeMethods.includes("S256"));
|
const supportsPKCE = Array.isArray(codeChallengeMethods) && codeChallengeMethods.includes("S256");
|
||||||
|
|
||||||
const strategy = new OpenIdStrategy(
|
const strategy = new OpenIdStrategy(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user