website/integrations/documentation/wiki-js/index.md
Wiki.js is a wiki engine running on Node.js and written in JavaScript. It is free software released under the Affero GNU General Public License. It is available as a self-hosted solution or using "single-click" install on the DigitalOcean and AWS marketplace.
:::info This is based on authentik 2022.11 and Wiki.js 2.5. Instructions may differ between versions. :::
The following placeholders are used in this guide:
wiki.company is the FQDN of Wiki.js installation.authentik.company is the FQDN of authentik installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
In Wiki.js, navigate to the Authentication section in the Administration interface.
Add a Generic OpenID Connect / OAuth2 strategy and take note of the Callback URL / Redirect URI in the Configuration Reference section at the bottom.
To support the integration of Wiki.js with authentik, you need to create an application/provider pair in authentik.
Strict redirect URI to https://wiki.company/login/id-from-wiki/callback.In Wiki.js, configure the authentication strategy with these settings:
https://authentik.company/application/o/<application_slug>/https://authentik.company/application/o/<application_slug>/end-session/:::info You do not have to enable "Allow self-registration" and select a group to which new users should be assigned, but if you don't you will have to manually provision users in Wiki.js and ensure that their emails match the email they have in authentik. :::
:::info If you're using self-signed certificates for authentik, you need to set the root certificate of your CA as trusted in WikiJS by setting the NODE_EXTRA_CA_CERTS variable as explained here: https://github.com/Requarks/wiki/discussions/3387. :::