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

feat: integrate alist with casdoor #1453

Merged
merged 2 commits into from
Aug 6, 2022
Merged

feat: integrate alist with casdoor #1453

merged 2 commits into from
Aug 6, 2022

Conversation

wenxuan70
Copy link

@wenxuan70 wenxuan70 commented Aug 4, 2022

基于Casdoor实现SSO单点登录。
后台接口使用access_token来替换原有的token登录,并替换掉密码生成token的方法,改用客户端id和客户端秘钥生成token。
fix:#1304

@welcome
Copy link

welcome bot commented Aug 4, 2022

Thanks for opening this pull request! Please check out our contributing guidelines.

@xhofe
Copy link
Collaborator

xhofe commented Aug 5, 2022

这样是只能通过cardoor登录了吗
我觉得可能不是所有用户都有意愿只使用casdoor登录,这应该是个可选项。
v3版本支持多用户,在v3中接入可能会更好,目前v3用户模块已经基本完成了,之后的更改可能会计划加一个otp。

@wenxuan70
Copy link
Author

那我在原来密码登录的基础上加入casdoor登录可以吗?
casdoor登录作为一个可选项,并且支持在配置文件中是否开启casdoor登录。

@xhofe
Copy link
Collaborator

xhofe commented Aug 5, 2022

那我在原来密码登录的基础上加入casdoor登录可以吗?
casdoor登录作为一个可选项,并且支持在配置文件中是否开启casdoor登录。

v2之后已经基本不会更新了 在v3中添加会更好一些

添加也可以 之后在v3中我可以自己加一下

@wenxuan70
Copy link
Author

v3版本我可以持续跟进。

@wenxuan70
Copy link
Author

已将casdoor登录作为一个可选项。
支持可选是否开启casdoor登录,将casdoor的配置写入作为backend的配置项写入数据库,保留原有的密码登录。

@xhofe xhofe merged commit 51b8b43 into AlistGo:v2 Aug 6, 2022
@welcome
Copy link

welcome bot commented Aug 6, 2022

Congrats on merging your first pull request! We here at behavior bot are proud of you!

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

Successfully merging this pull request may close these issues.

2 participants