Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔒️ Enable PKCE for OIDC provider (#2017)

Luke Vella972ed65a8900
diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.ts
index 416ef7bca..aca8042db 100644
--- a/apps/web/src/lib/auth.ts
+++ b/apps/web/src/lib/auth.ts
@@ -49,6 +49,7 @@ if (env.OIDC_CLIENT_ID && env.OIDC_CLIENT_SECRET && env.OIDC_DISCOVERY_URL) {
clientSecret: env.OIDC_CLIENT_SECRET,
scopes: ["openid", "profile", "email"],
redirectURI: absoluteUrl("/api/auth/callback/oidc"),
+ pkce: true,
mapProfileToUser(profile) {
return {
name: getValueByPath(profile, env.OIDC_NAME_CLAIM_PATH) as string,