Predifined Roles


#1

Hi,

We have enabled JWT auth in our jitsi instance. Now we want set the moderator role to a pre-defined user using JWT. Currently we know that we might have to edit prosody plugins and some parts in jicofo. Any pointers to the code would be much appreciated.


#2

Always the first one to join is a moderator and this is done by jicofo: https://github.com/jitsi/jicofo/blob/1d16c78f90d078e762266dc9df04950e780b7982/src/main/java/org/jitsi/jicofo/ChatRoomRoleAndPresence.java#L197, there is a property to disable the auto-owner from jicofo org.jitsi.jicofo.DISABLE_AUTO_OWNER.

There is this module that will enable all users to be moderators: https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_allowners.lua not sure from there how to get access to the bosh session and the token, but it is a starting point.

Hope this helps.