Skip to content

Commit 4089702

Browse files
committed
feat(token_verification): Pass through recorder and transcriber into meetings.
1 parent bf2254c commit 4089702

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

resources/prosody-plugins/mod_token_verification.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,18 @@ local function verify_user(session, stanza)
6969
local user_bare_jid = jid_bare(user_jid);
7070
local _, user_domain = jid_split(user_jid);
7171

72-
-- allowlist for participants
73-
if allowlist:contains(user_domain) or allowlist:contains(user_bare_jid) then
72+
-- allowlist for participants, jigasi (sip & transcriber), jibri (recorder & sip)
73+
if allowlist:contains(user_domain)
74+
or allowlist:contains(user_bare_jid)
75+
-- Let Jigasi or transcriber pass throw
76+
or util.is_sip_jigasi(stanza)
77+
or util.is_transcriber_jigasi(stanza)
78+
79+
-- is jibri
80+
or util.is_jibri(user_jid)
81+
82+
-- Let Sip Jibri pass through
83+
or util.is_sip_jibri_join(stanza) then
7484
if DEBUG then module:log("debug", "Token not required from user in allow list: %s", user_jid); end
7585
return true;
7686
end

0 commit comments

Comments
 (0)