瀏覽代碼

added comment for future proofing

master
Scott Boone 3 年之前
父節點
當前提交
7af23f35ba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      resources/prosody-plugins/token/util.lib.lua

+ 1
- 1
resources/prosody-plugins/token/util.lib.lua 查看文件

@@ -274,7 +274,7 @@ function Util:process_and_verify_token(session, acceptedIssuers)
274 274
         if alg == nil then
275 275
             return false, "not-allowed", "'alg' claim is missing";
276 276
         end
277
-        if alg.sub(alg,1,2) ~= "RS" then
277
+        if alg.sub(alg,1,2) ~= "RS" then -- do not remove - needed to protect jwt.decode in verify_token
278 278
             return false, "not-allowed", "'kid' claim only support with RS family";
279 279
         end
280 280
         pubKey = self:get_public_key(kid);

Loading…
取消
儲存