Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Stores the room name from the bosh url into the session.

damencho599d84a88918
diff --git a/resources/prosody-plugins/mod_auth_token.lua b/resources/prosody-plugins/mod_auth_token.lua
index d83f0b7bb5..fd9b264e7d 100644
--- a/resources/prosody-plugins/mod_auth_token.lua
+++ b/resources/prosody-plugins/mod_auth_token.lua
@@ -23,8 +23,12 @@ module:hook("bosh-session", function(event)
local query = request.url.query;
if query ~= nil then
- session.auth_token = query and formdecode(query).token or nil;
- end
+ local params = formdecode(query);
+ session.auth_token = query and params.token or nil;
+
+ -- The room name from the bosh query
+ session.jitsi_bosh_query_room = params.room;
+ end
end);
function provider.test_password(username, password)