Skip to content

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

fix: Drops unused token validation.

damencho8a596f1ba250
diff --git a/resources/prosody-plugins/mod_filter_iq_jibri.lua b/resources/prosody-plugins/mod_filter_iq_jibri.lua
index 70cc0e2ac2..b56cf54a76 100644
--- a/resources/prosody-plugins/mod_filter_iq_jibri.lua
+++ b/resources/prosody-plugins/mod_filter_iq_jibri.lua
@@ -1,8 +1,5 @@
local st = require "util.stanza";
local is_feature_allowed = module:require "util".is_feature_allowed;
-local token_util = module:require "token/util".new(module);
-
-local accepted_rayo_iq_token_issuers = module:get_option_array("accepted_rayo_iq_token_issuers");
-- filters jibri iq in case of requested from jwt authenticated session that
-- has features in the user context, but without feature for recording
@@ -15,27 +12,6 @@ module:hook("pre-iq/full", function(event)
local token = session.auth_token;
if jibri.attr.action == 'start' then
- local errorReason;
- if accepted_rayo_iq_token_issuers then
- local iq_token = jibri.attr.token;
- if iq_token then
- local session = {};
- session.auth_token = iq_token;
- local verified, reason = token_util:process_and_verify_token(
- session, accepted_rayo_iq_token_issuers);
- if verified then
- return nil; -- this will proceed with dispatching the stanza
- end
- errorReason = reason;
- else
- errorReason = 'No recording token provided';
- end
-
- module:log("warn", "not a valid token %s", tostring(errorReason));
- session.send(st.error_reply(stanza, "auth", "forbidden"));
- return true;
- end
-
if token == nil
or not is_feature_allowed(session.jitsi_meet_context_features,
(jibri.attr.recording_mode == 'file' and 'recording' or 'livestreaming')