bzp2010 commented on code in PR #11675:
URL: https://github.com/apache/apisix/pull/11675#discussion_r1978806220
##########
apisix/plugins/jwt-auth.lua:
##########
@@ -295,6 +299,10 @@ local function find_consumer(conf, ctx)
return nil, nil, "failed to verify jwt"
end
+ if conf.store_in_ctx then
+ ctx.jwt_obj = jwt_obj
Review Comment:
Awesome, maybe it would be better called `jwt_payload`, or
`jwt_auth_payload`?
Use `payload`, (and specifically prefix it with the jwt-auth plugin name, as
some other plugins such as openid-connect also use JWT, which may cause
conflicts
--
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]