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 2022/05/07 01:53:00 UTC

[GitHub] [apisix] stubbornTanzhe commented on issue #6994: help request: auth plugin header question

stubbornTanzhe commented on issue #6994:
URL: https://github.com/apache/apisix/issues/6994#issuecomment-1120107699

   thanks a lot.
   
   yes,upstream really need is the auth info,maybe the authed user-info such as username or role sth.
   
   [https://github.com/apache/apisix/issues/4078#issuecomment-822231019](url) 
   i solve the problem with writing a custom plugin,sth like 
   `core.request.set_header(ctx, "X-App-ID", consumer.username)` 
   
   maybe we can give more best practice, such as <$consumer_name> usage, which i found only as "Nginx variables". 
   I've no idea about the connection between the obj in apisix and the "Nginx variables"
   @tzssangglass @tokers 


-- 
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: notifications-unsubscribe@apisix.apache.org

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