Переглянути джерело

Fixes crashing jwt util for anonymous domains.

Room name verification crashes when we have a configured anonymousdomain as it doesn't have any token extracted data. It is safe to skip this check as room creation is verified by jicofo and we have the option restrict_room_creation to admin users.
Removes obsolete print when updating jitsi-meet-tokens.
j8
damencho 8 роки тому
джерело
коміт
9e728e4b25

+ 0
- 2
debian/jitsi-meet-tokens.postinst Переглянути файл

72
                 echo "Use the following command, after this package has been installed and"
72
                 echo "Use the following command, after this package has been installed and"
73
                 echo "after every prosody-trunk upgrade:"
73
                 echo "after every prosody-trunk upgrade:"
74
                 echo "sudo patch -N /usr/lib/prosody/modules/mod_bosh.lua /usr/share/jitsi-meet/prosody-plugins/mod_bosh.lua.patch"
74
                 echo "sudo patch -N /usr/lib/prosody/modules/mod_bosh.lua /usr/share/jitsi-meet/prosody-plugins/mod_bosh.lua.patch"
75
-            else
76
-                echo "Failed apply auto-config to $PROSODY_HOST_CONFIG which most likely comes from not supported version of jitsi-meet"
77
             fi
75
             fi
78
         else
76
         else
79
             echo "Prosody config not found at $PROSODY_HOST_CONFIG - unable to auto-configure token authentication"
77
             echo "Prosody config not found at $PROSODY_HOST_CONFIG - unable to auto-configure token authentication"

+ 3
- 1
resources/prosody-plugins/token/util.lib.lua Переглянути файл

260
 
260
 
261
     local auth_room = session.jitsi_meet_room;
261
     local auth_room = session.jitsi_meet_room;
262
     if not self.enableDomainVerification then
262
     if not self.enableDomainVerification then
263
-        if room ~= string.lower(auth_room) then
263
+        -- if auth_room is missing, this means user is anonymous (no token for
264
+        -- its domain) we let it through, jicofo is verifying creation domain
265
+        if auth_room and room ~= string.lower(auth_room) then
264
             return false;
266
             return false;
265
         end
267
         end
266
 
268
 

Завантаження…
Відмінити
Зберегти