|
@@ -36,7 +36,6 @@ function Util.new(module)
|
36
|
36
|
self.appSecret = module:get_option_string("app_secret");
|
37
|
37
|
self.asapKeyServer = module:get_option_string("asap_key_server");
|
38
|
38
|
self.allowEmptyToken = module:get_option_boolean("allow_empty_token");
|
39
|
|
- self.disableRoomNameConstraints = module:get_option_boolean("disable_room_name_constraints");
|
40
|
39
|
|
41
|
40
|
if self.allowEmptyToken == true then
|
42
|
41
|
module:log("warn", "WARNING - empty tokens allowed");
|
|
@@ -136,7 +135,7 @@ function Util:verify_token(token)
|
136
|
135
|
end
|
137
|
136
|
|
138
|
137
|
local roomClaim = claims["room"];
|
139
|
|
- if roomClaim == nil and self.disableRoomNameConstraints ~= true then
|
|
138
|
+ if roomClaim == nil then
|
140
|
139
|
return nil, "'room' claim is missing";
|
141
|
140
|
end
|
142
|
141
|
|
|
@@ -214,7 +213,7 @@ function Util:verify_room(session, room_address)
|
214
|
213
|
end
|
215
|
214
|
|
216
|
215
|
local auth_room = session.jitsi_meet_room;
|
217
|
|
- if self.disableRoomNameConstraints ~= true and room ~= string.lower(auth_room) then
|
|
216
|
+ if room ~= string.lower(auth_room) then
|
218
|
217
|
return false;
|
219
|
218
|
end
|
220
|
219
|
|