You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/09/28 04:02:32 UTC

[GitHub] [apisix] membphis commented on a change in pull request #2333: feat: support to fetch `consumer_name` via `ctx.var`

membphis commented on a change in pull request #2333:
URL: https://github.com/apache/apisix/pull/2333#discussion_r495678136



##########
File path: apisix/core/ctx.lua
##########
@@ -96,6 +96,9 @@ do
             elseif key == "service_id" then
                 val = ngx.ctx.api_ctx and ngx.ctx.api_ctx.service_id
 
+            elseif key == "consumer_name" then

Review comment:
       The same value can also be obtained when using `consumer_id`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org