feat: integrate Casdoor
登录模块及个人信息管理替换为Casdoor
使用Casdoor进行认证 特点: 支持OIDC、OAuth 2.0、SAML、LDAP Casdoor基于Casbin的授权管理,支持ACL、RBAC、ABAC、RESTful访问控制模型 前端和后端独立架构,支持高并发,提供基于web的管理UI Casdoor支持Github、谷歌、QQ、微信等第三方应用登录,支持通过插件扩展第三方登录。 电话验证码,电子邮件验证码和忘记密码功能。 访问日志审计和记录。 Casdoor支持使用db同步方法与现有系统集成,用户可以顺利过渡到Casdoor。 Casdoor支持MySQL、PostgreSQL、SQL Server等主流数据库,并支持通过插件对新数据库进行扩展。 演示视频:
https://user-images.githubusercontent.com/71440988/172343374-556c1cd6-3396-4a4f-a6e4-662cf8640681.mp4
Signed-off-by: YaoDong Yu [email protected]
@TruthHun any advice?
The Bookstack integrate casdoor document https://casdoor.org/docs/integration/bookstack.
The BookStack docunment need to update the deploy document 配置第三方登录(非必须)
Rename
oauth.conf.exampletooauth.confand modify the configuration. The content of which by default is:
[oauth]
casdoorOrganization = <"Organization">
casdoorApplication = "bookstack"
casdoorEndpoint = http://localhost:8000
clientId = <client ID>
clientSecret = <client Secret>
redirectUrl = http://localhost:8181/login/callback
注册登录
Migrating form old version to use Casdoor, Casdoor provides syncer to quickly help you sync user data to Casdoor. Database Syncer