🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: fix keycloak in lf cloud (#9794)
Max Deichmann146805dae29c
diff --git a/web/src/server/auth.ts b/web/src/server/auth.tsindex 81d51e2797..e1ee1ac77f 100644--- a/web/src/server/auth.ts+++ b/web/src/server/auth.ts@@ -440,13 +440,15 @@ const extendedPrismaAdapter: Adapter = {// (refresh_expires_in and not-before-policy in).// So, we need to remove this data from the payload before linking an account.// https://github.com/nextauthjs/next-auth/issues/7655- if (data.provider === "keycloak") {+ if (data.provider.endsWith("keycloak")) {+ // endsWith required as the multi-tenant cloud SSO providers are in the "domain.provider" formatdelete data["refresh_expires_in"];delete data["not-before-policy"];}// WorkOS returns profile data that doesn't match the schema- if (data.provider === "workos") {+ if (data.provider.endsWith("workos")) {+ // endsWith required as the multi-tenant cloud SSO providers are in the "domain.provider" formatdelete data["profile"];}