mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-05 05:27:35 +08:00
fix: Basic auth plugin should run in rewrite phase. (#2905)
This commit is contained in:
parent
ddfeb5de1d
commit
c140d0eddc
@ -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
|
||||
|
@ -198,6 +198,8 @@ Authorization: Basic Zm9vOmJhcg==
|
||||
hello world
|
||||
--- no_error_log
|
||||
[error]
|
||||
--- error_log
|
||||
find consumer foo
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user