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

是否考虑为AList接入Logto登录服务? #7599

Closed
4 tasks done
zyk121381 opened this issue Dec 3, 2024 · 3 comments
Closed
4 tasks done

是否考虑为AList接入Logto登录服务? #7599

zyk121381 opened this issue Dec 3, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@zyk121381
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

是否考虑为AList接入Logto登录服务。相对于casdoor来说,logto更容易上手

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@zyk121381 zyk121381 added the enhancement New feature or request label Dec 3, 2024
@zyk121381
Copy link
Author

已经接入。部署好Logto后,在单点登陆系统选择OIDC类型并填入自己在Logto中创建的应用的相关信息即可。
logto需要自行配置SMTP/SMS或社交连接器,配置后才可正常使用。目前发现用户若通过邮箱注册登入,由于没有用户名,无法正常传参到Alist中导致失败,只可以使用Google或Microsoft等登入(如果使用Github接口,用户若为设置他们的GitHub用户名,也无法登入)。

@lwabish
Copy link

lwabish commented Jan 5, 2025

尝试了一下,和现有文档中Casdoor的配置方法还是有一些区别的,有的配置项有点困惑。比如是否必须开启兼容模式,好像不开启的话即使配置了redirect url,logto还是提示未配置redirect url。

快速google了一下暂时没找到有现成的alist+logto的文档,如果可以增加官方文档就好了

@zyk121381
Copy link
Author

尝试了一下,和现有文档中Casdoor的配置方法还是有一些区别的,有的配置项有点困惑。比如是否必须开启兼容模式,好像不开启的话即使配置了redirect url,logto还是提示未配置redirect url。

快速google了一下暂时没找到有现成的alist+logto的文档,如果可以增加官方文档就好了

你好,我开启了兼容模式。在Logto中增加的OIDC应用配置中,重定向填入Alist文档中的域名就可以(http(s)://你的Alist域名/api/auth/sso_get_tokenhttp(s)://你的Alist域名/api/auth/get_sso_id)。
后续将Logto接入AList,只需要将AList单点登录类型选择OIDC,单点登录客户端ID填入你创建的Logto应用的应用 ID,单点登录客户端机密填入该应用的应用密钥值(填写默认密钥Default secret就可以),单点登录应用名称填写你创建的这个应用的名称,单点登录端点名称填写你创建的Logto应用的发行者端点(一般应该是http(s)://你的Logto登录前台域名/oidc,这个也可以在应用设置中找到)。
另外,你还需要在Logto中设置好连接器(邮箱SMTP、短信SMS或其他类似于支付宝、微信、微软、Github的社交连接器,社交连接器的申请和设置方式在Logto中已经集成,自己直接按照说明来就好)
邮箱SMTP设置对小白来说可能有些问题:Host填写你所使用的SMTP服务器地址,Port填写你所使用的SMTP服务器端口,Auth中补充完整所需信息(pass填写授权码,user填写发件箱),其他内容按需设置即可。
希望我的内容可以帮助到您。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants