This commit is contained in:
2026-09-04 17:51:30 +08:00
parent 04402a8bdf
commit e615be6ad7
18 changed files with 449 additions and 124 deletions
+4 -1
View File
@@ -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)