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/11/18 02:53:32 UTC

[GitHub] [apisix] tzssangglass commented on issue #8353: help request: openid-connect with proxy-rewrite => preferred_username

tzssangglass commented on issue #8353:
URL: https://github.com/apache/apisix/issues/8353#issuecomment-1319478605

   > proxy-rewrite: 
   >             headers: 
   >                 X-Remote-User: "!!!HERE_GOES_THE_CLAIM!!!"
   
   we can use 
   
   ```
   > proxy-rewrite: 
   >             headers: 
   >                 X-Remote-User: $consumer_name
   ```
   
   about `$consumer_name`: https://github.com/apache/apisix/blob/master/docs/en/latest/apisix-variable.md#list-of-variables
   
   Note that the `consumer_name` here comes from the `name` when you added the consumer. ref: https://github.com/apache/apisix/blob/master/docs/en/latest/admin-api.md#consumer


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