|
@@ -62,8 +62,11 @@ token_util:set_asap_accepted_issuers(ASAPAcceptedIssuers);
|
62
|
62
|
local ASAPAcceptedAudiences
|
63
|
63
|
= module:get_option_array('asap_accepted_audiences',{'*'});
|
64
|
64
|
|
65
|
|
- module:log("info", "ASAP Accepted Audiences %s", ASAPAcceptedAudiences);
|
66
|
|
- token_util:set_asap_accepted_audiences(ASAPAcceptedAudiences);
|
|
65
|
+module:log("info", "ASAP Accepted Audiences %s", ASAPAcceptedAudiences);
|
|
66
|
+token_util:set_asap_accepted_audiences(ASAPAcceptedAudiences);
|
|
67
|
+
|
|
68
|
+-- do not require room to be set on tokens for jibri queue
|
|
69
|
+token_util:set_asap_require_room_claim(false);
|
67
|
70
|
|
68
|
71
|
local ASAPTTL
|
69
|
72
|
= module:get_option_number("asap_ttl", 3600);
|
|
@@ -410,14 +413,15 @@ function verify_token(token, room_jid, session)
|
410
|
413
|
local verified, reason, message = token_util:process_and_verify_token(session);
|
411
|
414
|
if not verified then
|
412
|
415
|
log("warn", "not a valid token %s: %s", tostring(reason), tostring(message));
|
|
416
|
+ log("debug", "invalid token %s", token);
|
413
|
417
|
return false;
|
414
|
418
|
end
|
415
|
419
|
|
416
|
|
- if not token_util:verify_room(session, room_jid) then
|
417
|
|
- log("warn", "Token %s not allowed to access: %s",
|
418
|
|
- tostring(token), tostring(room_jid));
|
419
|
|
- return false;
|
420
|
|
- end
|
|
420
|
+ -- if not token_util:verify_room(session, room_jid) then
|
|
421
|
+ -- log("warn", "Token %s not allowed to access: %s",
|
|
422
|
+ -- tostring(token), tostring(room_jid));
|
|
423
|
+ -- return false;
|
|
424
|
+ -- end
|
421
|
425
|
|
422
|
426
|
return true;
|
423
|
427
|
end
|