Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

added comment for future proofing

Scott Boone7af23f35baf6
diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.lua
index 546cd80fa9..a9cc06a158 100644
--- a/resources/prosody-plugins/token/util.lib.lua
+++ b/resources/prosody-plugins/token/util.lib.lua
@@ -274,7 +274,7 @@ function Util:process_and_verify_token(session, acceptedIssuers)
if alg == nil then
return false, "not-allowed", "'alg' claim is missing";
end
- if alg.sub(alg,1,2) ~= "RS" then
+ if alg.sub(alg,1,2) ~= "RS" then -- do not remove - needed to protect jwt.decode in verify_token
return false, "not-allowed", "'kid' claim only support with RS family";
end
pubKey = self:get_public_key(kid);