shreemaan-abhishek commented on code in PR #11282:
URL: https://github.com/apache/apisix/pull/11282#discussion_r1768012378


##########
apisix/plugins/jwt-auth.lua:
##########
@@ -247,9 +251,9 @@ local function get_rsa_or_ecdsa_keypair(conf)
 end
 
 
-local function get_real_payload(key, auth_conf, payload)
+local function get_real_payload(key, auth_conf, payload, key_claim_name)
     local real_payload = {
-        key = key,
+        [key_claim_name] = key,

Review Comment:
   although the key_claim_name has changed, the value of `key_claim_name` will 
always be `key`. That doesn't fit into the scene. For example, if the 
`key_claim_name` is `exp` then the value should be the expiry time, not the 
key. Right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to