Skip to content

Commit 0303851

Browse files
authored
Update openid-connect.lua
clone conf before fetch_secrets to adopt issue #1956
1 parent 1f75535 commit 0303851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apisix/plugins/openid-connect.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ local function required_scopes_present(required_scopes, http_scopes)
472472
end
473473

474474
function _M.rewrite(plugin_conf, ctx)
475-
local conf = core.table.clone(plugin_conf)
476-
local conf = fetch_secrets(plugin_conf)
475+
local conf_clone = core.table.clone(plugin_conf)
476+
local conf = fetch_secrets(conf_clone)
477477

478478
-- Previously, we multiply conf.timeout before storing it in etcd.
479479
-- If the timeout is too large, we should not multiply it again.

0 commit comments

Comments
 (0)