Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix broken compatibility with previous oidc redirect uri (#2012)
Luke Vellaea884988b257
diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 294c64417..6778567e5 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -57,6 +57,11 @@ const nextConfig = {destination: "/api/notifications/unsubscribe",permanent: true,},+ {+ source: "/api/auth/callback/oidc",+ destination: "/api/better-auth/oauth2/callback/oidc",+ permanent: false,+ },];},devIndicators: {diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.tsindex c2ad66baf..21a1be27a 100644--- a/apps/web/src/lib/auth.ts+++ b/apps/web/src/lib/auth.ts@@ -48,6 +48,7 @@ if (env.OIDC_CLIENT_ID && env.OIDC_CLIENT_SECRET && env.OIDC_DISCOVERY_URL) {clientId: env.OIDC_CLIENT_ID,clientSecret: env.OIDC_CLIENT_SECRET,scopes: ["openid", "profile", "email"],+ redirectURI: absoluteUrl("/api/auth/callback/oidc"),mapProfileToUser(profile) {return {name: getValueByPath(profile, env.OIDC_NAME_CLAIM_PATH) as string,