Skip to content

Commit 9921abc

Browse files
authored
fix(sso/jumpcloud): Ensure that state param is used (#1020)
This commit updates the JumpCloud SSO provider implmentation in-order to ensure that the `state` and `pkce` params are included in the generated auth redirect. Ref: https://app.sourcebot.dev/~/chat/cmmyp5bsc0001n37tvx8dz4bp
1 parent 39145fb commit 9921abc

File tree

1 file changed

+1
-0
lines changed
  • packages/web/src/ee/features/sso

1 file changed

+1
-0
lines changed

packages/web/src/ee/features/sso/sso.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ const createJumpCloudProvider = (clientId: string, clientSecret: string, issuer:
442442
clientId: clientId,
443443
clientSecret: clientSecret,
444444
issuer: issuer,
445+
checks: ["pkce", "state"],
445446
allowDangerousEmailAccountLinking: env.AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING === 'true',
446447
} as Provider;
447448
}

0 commit comments

Comments
 (0)