回调
This commit is contained in:
@@ -14,7 +14,9 @@ function _M.access(conf, ctx)
|
||||
["/api/v3/login"] = true,
|
||||
["/admin/v3/login"] = true,
|
||||
["/admin/v3/refresh"] = true,
|
||||
["/api/v3/version"] = true,
|
||||
["/api/v3/version"] = true,
|
||||
["/api/v3/express/sf"] = true,
|
||||
["/api/v3/express/jd"] = true,
|
||||
}
|
||||
|
||||
local user_key = core.request.header(ctx, "authorization")
|
||||
@@ -22,6 +24,7 @@ function _M.access(conf, ctx)
|
||||
local req_auth = core.request.header(ctx, "authorization-auth")
|
||||
local refresh = core.request.header(ctx, "refresh")
|
||||
|
||||
|
||||
local skip_auth = white_list[request_uri]
|
||||
if skip_auth then
|
||||
core.log.info("WHITE_LIST_DEBUG: hit white list "..request_uri)
|
||||
|
||||
Reference in New Issue
Block a user