Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
mod_auth_token: Set room name on session
Sam Whited4fc86175e122
diff --git a/prosody-plugins/mod_auth_token.lua b/prosody-plugins/mod_auth_token.luaindex 9ff42934de..8a8b6a6ff7 100644--- a/prosody-plugins/mod_auth_token.lua+++ b/prosody-plugins/mod_auth_token.lua@@ -148,15 +148,15 @@ function provider.get_sasl_handler(session)end-- now verify the whole token- local result, msg;+ local claims, msg;if asapKeyServer then- result, msg = token_util.verify_token(token, appId, pubKey, disableRoomNameConstraints);+ claims, msg = token_util.verify_token(token, appId, pubKey, disableRoomNameConstraints);else- result, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);+ claims, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);end- if result == true then+ if claims ~= true then-- Binds room name to the session which is later checked on MUC join- session.jitsi_meet_room = room;+ session.jitsi_meet_room = claims["room"];return true;elsereturn false, "not-allowed", msgdiff --git a/prosody-plugins/token/util.lib.lua b/prosody-plugins/token/util.lib.luaindex 695f499b13..7ef885a3a3 100644--- a/prosody-plugins/token/util.lib.lua+++ b/prosody-plugins/token/util.lib.lua@@ -30,7 +30,7 @@ local function _verify_token(token, appId, appSecret, disableRoomNameConstraintsreturn nil, "'room' claim is missing";end- return true;+ return claims;endfunction _M.verify_token(token, appId, appSecret, disableRoomNameConstraints)