Passer au contenu principal

BookStack

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

Étape 1 : Créez une application Casdoor

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

bookstack_config.png

Étape 2 : Configurez la connexion Casdoor

Ensuite, naviguez jusqu'à BookStack et trouvez le fichier oauth.conf.example.

Renommez oauth.conf.example en oauth.conf et modifiez la configuration. Par défaut, le contenu est le suivant :

[oauth]
casdoorOrganization = "<Organization>"
casdoorApplication = "bookstack"
casdoorEndpoint = http://localhost:8000
clientId = <client ID>
clientSecret = <client Secret>
redirectUrl = http://localhost:8181/login/callback

Étape 3 : Remplissez le redirectUrl dans Casdoor

Dans l'étape finale, retournez à la page où vous avez ajouté l'application BookStack et remplissez les Redirect URLs. Assurez-vous que l'Redirect URL est la même que le redirectUrl dans le fichier oauth.conf.

bookstack_callback

After deploying BookStack, sign in via Casdoor.