| 1 |
Wekan |
| 2 |
===== |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
Wekan is an open-source Kanban, similar to trello. |
| 10 |
|
| 11 |
See `the official Wekan website <https://wekan.github.io/>`__ for a |
| 12 |
complete presentation. |
| 13 |
|
| 14 |
It feature an oauth2 login feature that work with LemonLDAP::NG |
| 15 |
|
| 16 |
Configuring Wekan |
| 17 |
----------------- |
| 18 |
|
| 19 |
Wekan is mostly configured with environement variables, you need to set |
| 20 |
theses : |
| 21 |
|
| 22 |
* **OAUTH2_ENABLED**: ``TRUE`` |
| 23 |
* **OAUTH2_CLIENT_ID**: ``ClientID`` |
| 24 |
* **OAUTH2_SECRET**: ``Secret`` |
| 25 |
* **OAUTH2_SERVER_URL**: ``https://auth.example.com/`` |
| 26 |
* **OAUTH2_AUTH_ENDPOINT**: ``oauth2/authorize`` |
| 27 |
* **OAUTH2_USERINFO_ENDPOINT**: ``oauth2/userinfo`` |
| 28 |
* **OAUTH2_TOKEN_ENDPOINT**: ``oauth2/token`` |
| 29 |
* **OAUTH2_ID_MAP**: ``sub`` |
| 30 |
* **OAUTH2_USERNAME_MAP**: ``sub`` |
| 31 |
* **OAUTH2_FULLNAME_MAP**: ``name`` |
| 32 |
* **OAUTH2_EMAIL_MAP**: ``email`` |
| 33 |
* **OAUTH2_REQUEST_PERMISSIONS**: ``openid profile email`` |
| 34 |
|
| 35 |
|
| 36 |
.. danger:: |
| 37 |
|
| 38 |
Be careful to the / in server_url and endpoints, the |
| 39 |
complete URL need to be valid, ie auth.example.com/ for url & oauth2/xxx |
| 40 |
for endpoints, OR, auth.example.com & /oauth2/xxx for endpoints. |
| 41 |
|
| 42 |
Configuring LemonLDAP |
| 43 |
~~~~~~~~~~~~~~~~~~~~~ |
| 44 |
|
| 45 |
We now have to configure LemonLDAP::NG to recognize Wekan as a valid |
| 46 |
OAuth2 relying party and send it the information it needs to recognize |
| 47 |
a user. |
| 48 |
|
| 49 |
Add a :doc:`new OpenID Connect relying party<..//idpopenidconnect>` |
| 50 |
with the following parameters: |
| 51 |
|
| 52 |
* **Client ID**: the same you set in Wekan configuration (same as OAUTH2_CLIENT_ID) |
| 53 |
* **Client Secret**: the same you set in Wekan configuration (same as OAUTH2_SECRET) |
| 54 |
* Add the following exported attributes |
| 55 |
* ``name``: session attribute containing the user's full name |
| 56 |
* ``email``: session attribute containing the user's email or _singleMail |
| 57 |
|
| 58 |
\_singleMail Macro |
| 59 |
^^^^^^^^^^^^^^^^^^ |
| 60 |
|
| 61 |
|
| 62 |
.. danger:: |
| 63 |
|
| 64 |
OIDC login fails when an user as a multi-valued email |
| 65 |
attribute, this need to be fixed on wekan's side, we can bypass that by |
| 66 |
telling lemonldap to only send one email |
| 67 |
|
| 68 |
Create a new macro, name it (_singleMail is an example), the macro |
| 69 |
should contain ``(split(/; /,$mail))[1]`` |
| 70 |
|
| 71 |
.. |image0| image:: /applications/wekan-logo.png |
| 72 |
:class: align-center |
| 73 |
|