Adding authentication to Jitsi Meet

Kerry Ritter picture Kerry Ritter · Feb 2, 2018 · Viewed 7.4k times · Source

I would like to add the ability to only allow authenticated users to create a conference in Jitsi Meet. I see the external API's jwt param, config.tokenAuthUrl and the lib-jitsi-meet tokens document but I'm very confused on how to put it all together.

Right now, my workflow is as follows:

  1. User logs in with Google via custom app.
  2. User is redirected to a new Jitsi conference with a jwt parameter derived from the Google login information.

Where I'm stuck is validating this token, and how to set it up to validate. What configuration needs made? What type of response should the tokenAuthUrl application be returning for valid/invalid JWTs?

Answer

Martin Cabrera picture Martin Cabrera · Oct 23, 2018

these changes should be made in /etc/prosody/conf.avail/[your-hostname].cfg.lua

a) Enable authentication on your main domain:

VirtualHost "jitsi-meet.example.com"
authentication = "internal_plain"

Source: https://github.com/jitsi/jicofo