feat: Updates for jwt when room claim is not required.

This allows mod_token_verification to be used with token missing room claim (firebase) and jitsi tokens with the claim.
This commit is contained in:
damencho
2023-09-27 18:18:45 -05:00
committed by Дамян Минков
parent d70412166c
commit f9ac965e18

View File

@@ -381,7 +381,13 @@ function Util:verify_room(session, room_address)
end
module:log("debug", "room to check: %s", room_to_check)
if not room_to_check then
return false
if not self.requireRoomClaim then
-- if we do not require to have the room claim, and it is missing
-- there is no point of continue and verifying the roomName and the tenant
return true;
end
return false;
end
end