lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
Other
34.78k stars 8.17k forks source link

[Bug] OAuth SSO Disabled When Using Only NEXT_AUTH_SECRET #2986

Open nikkoxgonzales opened 1 week ago

nikkoxgonzales commented 1 week ago

📦 Environment

Docker

📌 Version

1.1.4

💻 Operating System

Ubuntu

🌐 Browser

Edge

🐛 Bug Description

The application incorrectly disables Single Sign-On (SSO) functionality when only the NEXT_AUTH_SECRET environment variable is set. This occurs despite the deprecation message suggesting that setting NEXT_AUTH_SECRET should be sufficient for SSO to work.

📷 Recurrence Steps

  1. Set up the application with only the NEXT_AUTH_SECRET environment variable.
  2. Attempt to use OAuth SSO functionality.
  3. Observe that SSO is disabled.

🚦 Expected Behavior

OAuth SSO should remain functional when NEXT_AUTH_SECRET is set, without requiring the deprecated ENABLE_OAUTH_SSO variable.

📝 Additional Information

lobehubbot commented 1 week ago

👀 @nikkoxgonzales

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

cy948 commented 1 week ago

We already notice this problem and it will be fixed at #2935