Revolyssup commented on code in PR #12435:
URL: https://github.com/apache/apisix/pull/12435#discussion_r2221383910


##########
docs/en/latest/plugins/forward-auth.md:
##########
@@ -187,11 +187,12 @@ curl -X PUT 
'http://127.0.0.1:9180/apisix/admin/routes/auth' \
             "functions": [
                 "return function(conf, ctx)
                  local core = require(\"apisix.core\")
-                 if core.request.header(ctx, \"tenant_id\") then
+                 local tenant_id = core.request.header(ctx, \"tenant_id\")
+                 if tenant_id == \"123\" then
                      core.response.set_header(\"X-User-ID\", \"i-am-an-user\");

Review Comment:
   This is required to pass/deny the request. Users don't need to care about 
it. This is forward-auth server simulated.



-- 
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-unsubscr...@apisix.apache.org

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

Reply via email to