Browse Source

added comment for future proofing

master
Scott Boone 4 years ago
parent
commit
7af23f35ba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      resources/prosody-plugins/token/util.lib.lua

+ 1
- 1
resources/prosody-plugins/token/util.lib.lua View File

@@ -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…
Cancel
Save