We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfa0c1c commit d2fcee2Copy full SHA for d2fcee2
lib/resty/libjwt/utils.lua
@@ -4,6 +4,7 @@ function _M.get_params(params)
4
local result = {
5
header_token = "Authorization",
6
jwks_files = {},
7
+ return_unauthorized_default = true
8
}
9
if params == nil then
10
return nil, "params is required"
@@ -15,6 +16,9 @@ function _M.get_params(params)
15
16
if params["jwks_files"] == nil then
17
return nil, "jwks_files is required"
18
end
19
+ if params["return_unauthorized_default"] ~= nil then
20
+ result.return_unauthorized_default = params["return_unauthorized_default"]
21
+ end
22
if type(params["jwks_files"]) ~= "table" then
23
return nil, "jwks_files is not an array"
24
0 commit comments