lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
45.44k stars 10.2k forks source link

[Request] NextAuth Credentials provider #4808

Open CGamesPlay opened 4 days ago

CGamesPlay commented 4 days ago

🥰 Feature Description

I'm using LobeChat self-hosted and want to migrate to the server mode. However, I don't want to use an external identity provider (Github, Google, etc) and don't want to set up my own (Casdoor). I don't really need multi-user features at all. Ideally, I'd like to hard-code a username and password using environment variables.

🧐 Proposed Solution

NextAuth.js Credentials Provider can be used to enable a single-user, server-mode install. It could be configured using environment variables:

NEXT_AUTH_SSO_PROVIDERS=credentials
AUTH_CREDENTIALS_USERNAME=email@example.com
AUTH_CREDENTIALS_PASSWORD=password

📝 Additional Information

No response

lobehubbot commented 4 days ago

👀 @CGamesPlay

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。