Skip to content

Commit

Permalink
修复 session_cookie_renew 不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopal committed Sep 12, 2018
1 parent 6468d33 commit 662ae1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oidc-access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if oidc_access and oidc_access ~= "" and oidc_access ~= "none" then
if val == nil then return nil end
return val == true or (val == "1" or val == "true" or val == "on")
end

local session_opts = {
name = session_name,
secret = cfg["session_secret"] or cfg["client_secret"],
Expand Down Expand Up @@ -119,7 +119,7 @@ if oidc_access and oidc_access ~= "" and oidc_access ~= "none" then
return "auth"
end
local action = oidc_access_action()
local res, err, url, session = require("resty.openidc").authenticate(opts, nil, (action == "pass" or action == "no-auth") and "pass", session_opts)
local res, err, url, session = require("resty.openidc").authenticate(opts, nil, (action == "pass" or action == "no-auth") and "pass", require("resty.session").start(session_opts))
if err then
ngx.log(ngx.ERR, err)
if cfg["error_redirect"] then
Expand Down

0 comments on commit 662ae1a

Please sign in to comment.