|
@@ -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);
|