|
@@ -148,15 +148,15 @@ function provider.get_sasl_handler(session)
|
148
|
148
|
end
|
149
|
149
|
|
150
|
150
|
-- now verify the whole token
|
151
|
|
- local result, msg;
|
|
151
|
+ local claims, msg;
|
152
|
152
|
if asapKeyServer then
|
153
|
|
- result, msg = token_util.verify_token(token, appId, pubKey, disableRoomNameConstraints);
|
|
153
|
+ claims, msg = token_util.verify_token(token, appId, pubKey, disableRoomNameConstraints);
|
154
|
154
|
else
|
155
|
|
- result, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);
|
|
155
|
+ claims, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);
|
156
|
156
|
end
|
157
|
|
- if result == true then
|
|
157
|
+ if claims ~= true then
|
158
|
158
|
-- Binds room name to the session which is later checked on MUC join
|
159
|
|
- session.jitsi_meet_room = room;
|
|
159
|
+ session.jitsi_meet_room = claims["room"];
|
160
|
160
|
return true;
|
161
|
161
|
else
|
162
|
162
|
return false, "not-allowed", msg
|