| 1 |
Wiki.js |
| 2 |
======= |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
Wiki.js is an open-source wiki. |
| 10 |
|
| 11 |
See `the official Wiki.js website <https://js.wiki/>`__ for a |
| 12 |
complete presentation. |
| 13 |
|
| 14 |
It feature an OpenID Connect login that work with LemonLDAP::NG. |
| 15 |
|
| 16 |
Configuring Wiki.js |
| 17 |
------------------- |
| 18 |
|
| 19 |
Connect to your wiki.js instance with an Admin user, in the admin panel, go to "Authentication". |
| 20 |
|
| 21 |
Click on "Add Strategy" and Choose "Generic OpenID Connect / OAuth2". |
| 22 |
|
| 23 |
Choose a Display Name. |
| 24 |
|
| 25 |
Define a Client ID and a Client Secret. |
| 26 |
|
| 27 |
* Authorization Endpoint URL : https://auth.example.com/oauth2/authorize |
| 28 |
* Token Endpoint URL : https://auth.example.com/oauth2/token |
| 29 |
* User info Endpoint URL : https://auth.example.com/oauth2/userinfo |
| 30 |
* Issuer : https://auth.example.com |
| 31 |
* Logout URL : https://auth.example.com/oauth2/logout |
| 32 |
|
| 33 |
Make a note of the "Callback URL" and the bottom of the screen and save the configuration. |
| 34 |
|
| 35 |
Configuring LemonLDAP |
| 36 |
~~~~~~~~~~~~~~~~~~~~~ |
| 37 |
|
| 38 |
We now have to configure LemonLDAP::NG to recognize wiki.js as a valid OIDC relying party. |
| 39 |
|
| 40 |
Add a :doc:`new OpenID Connect relying party<..//idpopenidconnect>` |
| 41 |
with the following parameters (Options -> Basic) : |
| 42 |
|
| 43 |
* **Client ID**: the same you set in Wiki.js configuration. |
| 44 |
* **Client Secret**: the same you set in Wiki.js configuration. |
| 45 |
* **Allowed redirection addresses for login**: The "Callback URL" defined in wiki.js. |
| 46 |
|
| 47 |
Portal with internal CA |
| 48 |
^^^^^^^^^^^^^^^^^^^^^^^ |
| 49 |
|
| 50 |
.. danger:: |
| 51 |
|
| 52 |
OIDC login fails when your LemonLDAP portal doesn't use a publicaly recognized certificate (Internal Corporate CA), this is because nodejs use it's own keystore. |
| 53 |
You'll need to pass "NODE_EXTRA_CA_CERTS=" to your wiki installation. If done in docker you will have to create a new image from the official one, add your CA certificates into it, and use the env variable to use it in your wiki.js container. |
| 54 |
|
| 55 |
.. |image0| image:: /applications/wiki.js.svg |
| 56 |
:class: align-center |