-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[feature request] 建议增加 OIDC
单点登录的支持
#737
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
Comments
会考虑接入
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年5月2日(周五) 晚上7:19
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [zfile-dev/zfile] [feature request] 建议增加 `OIDC` 单点登录的支持 (Issue #737)
Oniokey created an issue (zfile-dev/zfile#737)
描述
在团队使用本项目时,通常会建立统一身份服务,来串联起团队所使用到的各项服务
在个人使用本项目时,也会通过 Logto 等开源单点登录服务来简化各个系统间的身份问题
所以,建议增加单点登录的功能,可以优先考虑 OIDC/OAuth 2.0 作为单点登录的实现方式,通过 email 或 username 等字段将单点登录系统和业务系统(本项目)的用户关联起来
额外信息
SaToken 似乎有 OAuth 2.0 Client 的支持,但简略地看了下文档,似乎并不是标准的 OAuth 2.0 流程,可能需要自行实现相关流程
建议的流程是:
后端增加 OIDC 配置相关的环境变量,例如 ClientID ClientSecret Issuer Endpoint Well-Known Endpoint
通过 Well-Known Endpoint 获取必要的 code auth user_info 等端点
执行标准 OIDC 流程
后端服务得到用户信息后,根据 email 或 username 等字段关联用户
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
可以聊聊大致的实现思路,然后我可以按照思路和路线 pr |
我需要等节后在看进行回复,pr也行,我自己开发也行。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2025年5月2日(周五) 晚上7:49
收件人: ***@***.***>;
抄送: "zhao ***@***.******@***.***>;
主题: Re: [zfile-dev/zfile] [feature request] 建议增加 `OIDC` 单点登录的支持 (Issue #737)
Oniokey left a comment (zfile-dev/zfile#737)
可以聊聊大致的实现思路,然后我可以按照思路和路线 pr
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我看了下,其实就是实现标准的 具体设计上:
开发测试上:
这是一个大功能,可能需要的时间较长,优先级为中,欢迎 PR 来加快进度,如果有其他想法也可补充。 |
了解,后续我给出相关 pr 推动这个功能 同时,有一些问题可能需要提前研究出方案
|
补充,尽量不引用额外的类库,工具类优先使用 |
wip pr #741 |
好的,谢谢。 |
后端这部分已经基本完成,可以看下有哪里是不合适的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述
在团队使用本项目时,通常会建立统一身份服务,来串联起团队所使用到的各项服务
在个人使用本项目时,也会通过
Logto
等开源单点登录服务来简化各个系统间的身份问题所以,建议增加单点登录的功能,可以优先考虑
OIDC
/OAuth 2.0
作为单点登录的实现方式,通过email
或username
等字段将单点登录系统和业务系统(本项目)的用户关联起来额外信息
SaToken 似乎有
OAuth 2.0 Client
的支持,但简略地看了下文档,似乎并不是标准的OAuth 2.0
流程,可能需要自行实现相关流程建议的流程是:
OIDC
配置相关的环境变量,例如ClientID
ClientSecret
Issuer Endpoint
Well-Known Endpoint
Well-Known Endpoint
获取必要的code
auth
user_info
等端点OIDC
流程email
或username
等字段关联用户The text was updated successfully, but these errors were encountered: