Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] #2578

Open
Microcarft opened this issue May 20, 2024 · 10 comments
Open

[Request] #2578

Microcarft opened this issue May 20, 2024 · 10 comments
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@Microcarft
Copy link

🥰 需求描述

目前LobeChat的SSO功能已经很不错,但我希望能增加一项较为小众的需求就是基于Synology NAS的SSO应用登录。或者说,可以给出一套公有化SSO模板,用户可以自定义配置为Synology SSO或者其他SSO功能。

🧐 解决方案

我更喜欢有一套面向大部分SSO的模板,这样用户可以自定义配置想要的SSO服务

📝 补充信息

No response

@Microcarft Microcarft added the 🌠 Feature Request New feature or request | 特性与建议 label May 20, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

At present, LobeChat's SSO function is already very good, but I hope to add a more niche demand, which is SSO application login based on Synology NAS. In other words, a set of public SSO templates can be provided, and users can customize the configuration for Synology SSO or other SSO functions.

🧐 Solution

I prefer to have a set of templates for most SSO so that users can customize the SSO services they want.

📝 Supplementary information

No response

@lobehubbot
Copy link
Member

👀 @Microcarft

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

@arvinxx
Copy link
Contributor

arvinxx commented May 20, 2024

现在是基于 Next-auth 做的 SSO ,理论上只要 next-auth 支持的 provider ,我们都能比较容易地接入:

image

可以在这里查看:https://authjs.dev/getting-started/providers/passkey

另外得益于 @cy948 的优秀工作,我们也有了完善的接入指南:https://github.com/lobehub/lobe-chat/wiki/Add-New-Authentication-Providers.zh-CN 。你可以看下是否能满足你的接入诉求?

@KnightNFS
Copy link

I think its very useful for Self-Hosting . It will be great to add as additional SSO provider in feature releases.

@cy948
Copy link
Contributor

cy948 commented May 22, 2024

可以创建自定义 Authjs SSO Provider https://authjs.dev/guides/configuring-oauth-providers#use-your-own-provider 再进行接入。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can create a custom Authjs SSO Provider https://authjs.dev/guides/configuring-oauth-providers#use-your-own-provider and then access it.

@Microcarft
Copy link
Author

感谢!我想我已经知道如何去尝试了。不过我自己对 Authjs SSO 并没有了解,或许我应该去学习了。再次感谢您的解答!

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


grateful! I think I already know how to try. But I don’t know much about Authjs SSO myself, maybe I should learn it. Thanks again for your answer!

@KnightNFS
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

You can create a custom Authjs SSO Provider https://authjs.dev/guides/configuring-oauth-providers#use-your-own-provider and then access it.

Could you please make a short explain guide .

  1. to which folder need to place {provider_name.ts} file ? ( As i understand under "sso-providers" subfolder)
  2. Do i need add a some specific code lines into {provider_name.ts} to match the logic of your Code and the system has determined the provider?
  3. What Envelopment Variable we can use for specific "issuer" URL

Thank you.

@arvinxx
Copy link
Contributor

arvinxx commented May 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

5 participants