diff --git a/apisix/plugins/basic-auth.lua b/apisix/plugins/basic-auth.lua index 1171537d..7c3efb63 100644 --- a/apisix/plugins/basic-auth.lua +++ b/apisix/plugins/basic-auth.lua @@ -125,7 +125,7 @@ do end end -function _M.access(conf, ctx) +function _M.rewrite(conf, ctx) core.log.info("plugin access phase, conf: ", core.json.delay_encode(conf)) -- 1. extract authorization from header diff --git a/t/plugin/basic-auth.t b/t/plugin/basic-auth.t index 4f04db60..8382de0c 100644 --- a/t/plugin/basic-auth.t +++ b/t/plugin/basic-auth.t @@ -198,6 +198,8 @@ Authorization: Basic Zm9vOmJhcg== hello world --- no_error_log [error] +--- error_log +find consumer foo