| 1 |
Jitsi Meet Tokens |
| 2 |
================= |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Jitsi Meet <https://github.com/jitsi/jitsi-meet>`__ is a WEBRTC-based |
| 10 |
video conferencing application, powering the |
| 11 |
`meet.jit.si <http://meet.jit.si>`__ online service. |
| 12 |
|
| 13 |
Users may install their own instance of Jitsi Meet for private use, in |
| 14 |
which case, they may use authentication to control the creation of |
| 15 |
conference rooms. |
| 16 |
|
| 17 |
Jitsi Meet uses a custom JWT-based protocol to authenticate users. Some |
| 18 |
technical details can be found `in the documentation repo |
| 19 |
<https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md>`__ |
| 20 |
|
| 21 |
LemonLDAP::NG can act as a JWT issuer for Jitsi Meet. |
| 22 |
|
| 23 |
As of 2.19.0, only a single Jitsi server per LemonLDAP::NG installation is supported. |
| 24 |
|
| 25 |
Configuring LemonLDAP::NG |
| 26 |
------------------------- |
| 27 |
|
| 28 |
Jitsi Meet Tokens issuer |
| 29 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 30 |
|
| 31 |
Go in ``General Parameters`` » ``Issuer modules`` » ``Jitsi Meet Tokens`` and |
| 32 |
configure: |
| 33 |
|
| 34 |
- **Activation**: set to ``On``. |
| 35 |
- **Path**: keep ``^/jitsi/`` unless you want to change the prefix of endpoints |
| 36 |
- **Use rule**: a rule to select which users can use this module, set to ``1`` to allow all users |
| 37 |
|
| 38 |
.. tip:: |
| 39 |
|
| 40 |
For example, to allow only members of the jitsi-meet group: |
| 41 |
|
| 42 |
:: |
| 43 |
|
| 44 |
inGroup('jitsi-meet') |
| 45 |
|
| 46 |
|
| 47 |
Options |
| 48 |
~~~~~~~ |
| 49 |
|
| 50 |
- **Jitsi Meet server URL**: The base URL of your Jitsi Meet server |
| 51 |
- **Application ID**: The application identifier |
| 52 |
- **Shared secret**: The application shared secret, only needed if you use ``HS*`` signature algorithms |
| 53 |
- **Signature algorithm**: The signature algorithm to use. By default ``HS256`` is used, which requires a shared secret. |
| 54 |
- **Signing key name**: By default, the key specified above will be used for |
| 55 |
signature. You can use :doc:`anonther key <keys>` instead in order to better |
| 56 |
manage key rotation. If you declare a comma-separated list, only the first |
| 57 |
declared key will be used for signature, but all listed keys will be |
| 58 |
published to Jitsi using the ASAP protocol |
| 59 |
- **Jitsi JWT expiration**: How long, in seconds, will the generated JWT be valid (``exp`` field) |
| 60 |
|
| 61 |
Signature algorithms |
| 62 |
~~~~~~~~~~~~~~~~~~~~ |
| 63 |
|
| 64 |
There are two ways for the Jitsi Meet server to validate the token authenticity: |
| 65 |
|
| 66 |
|
| 67 |
* Using ``HS*`` signature algorithms. In that case, LemonLDAP::NG and the Jitsi Meet server will use a shared secret. This is simpler to setup, but less secure than public keys. |
| 68 |
* Using a different signature algorithm. In that case, the Jitsi Meet server will use LemonLDAP::NG's public key to validate the token. ``RS256`` is recommended. |
| 69 |
|
| 70 |
.. important:: |
| 71 |
|
| 72 |
LemonLDAP::NG will attempt to use the *OpenID Connect* private key to emit |
| 73 |
JWTs, by default. If you don't use OpenID Connect. You should create a new |
| 74 |
key in *General Parameters* > *Keys*, and indicate the name you gave to it |
| 75 |
in *Signing key name* |
| 76 |
|
| 77 |
|
| 78 |
Attribute mapping |
| 79 |
~~~~~~~~~~~~~~~~~ |
| 80 |
|
| 81 |
- **Identifier attribute**: Specify the LemonLDAP::NG session attribute to be used for the ``context.user.id`` field in the token. By default, the main LemonLDAP::NG identifier is used. |
| 82 |
- **Name attribute**: Specify the LemonLDAP::NG session attribute to be used for the ``context.user.name`` field in the token. |
| 83 |
- **Mail attribute**: Specify the LemonLDAP::NG session attribute to be used for the ``context.user.email`` field in the token. |
| 84 |
|
| 85 |
Configuring Jitsi Meet |
| 86 |
---------------------- |
| 87 |
|
| 88 |
If you are using the Docker based install, refer to the `Jitsi Meet documentation on token authentication <https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker/#authentication-using-jwt-tokens>`__ |
| 89 |
|
| 90 |
Here are the variables you need to adjust when using LemonLDAP::NG: |
| 91 |
|
| 92 |
|
| 93 |
=========================== ================ |
| 94 |
Variable Value |
| 95 |
=========================== ================ |
| 96 |
ENABLE_AUTH 1 |
| 97 |
AUTH_TYPE jwt |
| 98 |
JWT_APP_ID Same as *Application ID* |
| 99 |
JWT_APP_SECRET If ``HS*`` signature is used: same as *Shared secret* |
| 100 |
JWT_ACCEPTED_ISSUERS ``https://auth.example.com/`` |
| 101 |
JWT_ACCEPTED_AUDIENCES Same as *Application ID* |
| 102 |
JWT_ASAP_KEYSERVER If public-key signature is used: ``https://auth.example.com/jitsi/asap`` |
| 103 |
TOKEN_AUTH_URL ``https://auth.example.com/jitsi/login?room={room}`` |
| 104 |
=========================== ================ |
| 105 |
|
| 106 |
|
| 107 |
.. |image0| image:: /applications/logo-jitsimeet.png |
| 108 |
:class: align-center |