BookStack
Enable OIDC login for BookStack wiki
Pocket ID Setup
- In Pocket ID, create a new OIDC client (example:
bookstack). - Set the Callback URL to
https://<bookstack-url>/oidc/callback, or leave blank to autofill on first login. - Enable PKCE for improved security.
- Copy the generated Client ID and Client Secret values for next steps.
BookStack Docker Setup
Refer to the BookStack documentation for more information if needed.
Add the following variables to your BookStack container .env file and restart:
Group synchronization
BookStack also has the ability to sync OIDC user groups with BookStack roles. By default BookStack will match OIDC groups (Pocket ID groups), with the BookStack role display names, with casing ignored.
This feature requires the OIDC server to provide a claim in the ID token with an array of group names.
Setup new Roles (or rename existing ones) in BookStack. Example:
- BookStack_Admin
- BookStack_Editor
- BookStack_Viewer
Create matching groups in Pocket ID:
- BookStack Admin (
bookstack_admin) - BookStack Editor (
bookstack_editor) - BookStack Viewer (
bookstack_viewer)
- BookStack Admin (
Add the following lines to your BookStack container
.envand restart: