跳到主内容

BookStack

BookStack is an open-source wiki/document platform. Use Casdoor for sign-in with the following steps.

步骤1:创建一个Casdoor应用

In Casdoor, add an application (e.g. BookStack). Note Name, Organization, Client ID, and Client secret.

bookstack_config.png

步骤2:配置Casdoor登录

接下来,导航到BookStack并找到文件oauth.conf.example

oauth.conf.example 重命名为 oauth.conf修改配置 默认情况下,内容如下:

[oauth]
casdoorOrganization = "<组织>"
casdoorApplication = "bookstack"
casdoorEndpoint = http://localhost:8000
clientId = <客户端 ID>
clientSecret = <客户端密钥>
redirectUrl = http://localhost:8181/login/callback

步骤3:在Casdoor中填写redirectUrl

在最后一步中,返回到您添加BookStack应用程序的页面,并填写Redirect URLs。 确保Redirect URLoauth.conf文件中的redirectUrl相同。

bookstack_callback

After deploying BookStack, sign in via Casdoor.