🪢 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: add guiding error for SSO sign in issues (#10003)
Steffen Schmitz2f671b888e48
diff --git a/web/src/features/auth-credentials/server/signupApiHandler.ts b/web/src/features/auth-credentials/server/signupApiHandler.tsindex 8d43bf5b1c..63f7accdd7 100644--- a/web/src/features/auth-credentials/server/signupApiHandler.ts+++ b/web/src/features/auth-credentials/server/signupApiHandler.ts@@ -63,7 +63,8 @@ export async function signupApiHandler(const multiTenantSsoProvider = await getSsoAuthProviderIdForDomain(domain);if (multiTenantSsoProvider) {res.status(422).json({- message: "You must sign in via SSO for this domain.",+ message:+ "You must sign in via SSO for this domain. Enter your email on the sign-in page and press Continue.",});return;}diff --git a/web/src/server/auth.ts b/web/src/server/auth.tsindex e1ee1ac77f..3167246fdd 100644--- a/web/src/server/auth.ts+++ b/web/src/server/auth.ts@@ -700,7 +700,9 @@ export async function getAuthOptions(): Promise<NextAuthOptions> {console.log("Custom SSO provider enforced for domain, user signed in with other provider",);- throw new Error(`You must sign in via SSO for this domain.`);+ throw new Error(+ `You must sign in via SSO for this domain. Enter your email on the sign-in page and press Continue.`,+ );}// EE: Check that provider is only used for the associated domain