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
39.94k stars 9.09k forks source link

[Request] Auth and management role #499

Closed hellimon1 closed 9 months ago

hellimon1 commented 9 months ago

🥰 需求描述 | Feature Description

Translation:

Authorization

Is it possible to implement an authorization function? I mean, I know how to implement conditional SAML SSO through Nginx, which simply acts as an entry point.

But do you have plans to implement full-fledged authorization?

And do you plan to add the ability to manage access?

For example, so that someone can only use certain agents, certain GPT models, etc.

🧐 解决方案 | Proposed Solution

I don't have a technical proposal.

📝 补充信息 | Additional Information

No response

lobehubbot commented 9 months ago

👀 @hellimon1

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

mushan0x0 commented 9 months ago

Duplicate questions #496

mushan0x0 commented 9 months ago

You can write a separate backend service and add your own login logic in the code where LobeChat requires authorization password, just like the example below:

image
hellimon1 commented 9 months ago

Thank you very much for your quick response. I am very grateful to you.

If you have any link to documentation with an example of how to implement this, it would be fantastic. 🙏

Also, please share your link to your https://www.buymeacoffee.com/ or a similar service. I would like to modestly thank you for your application and effort. It has been greatly appreciated by me and all my colleagues at work, who I believe would also like to express their gratitude to you.

mushan0x0 commented 9 months ago

@hellimon1 This may require you to develop it yourself because it is not a necessary feature. If you want to customize the login interface, you can modify this file. As for the backend part of the account and permission, you only need to design a simple independent system.

lobehubbot commented 9 months ago

✅ @hellimon1

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。