From e5ede9f1faf7698a5a0b1813c366ff5aaf45d83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Old=C5=99ich=20Jedli=C4=8Dka?= Date: Thu, 28 Dec 2023 23:37:54 +0100 Subject: [PATCH] Allow changing of query parameters in on_created call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oldřich Jedlička --- lib/resty/openidc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resty/openidc.lua b/lib/resty/openidc.lua index b5c4f41..be74fc7 100644 --- a/lib/resty/openidc.lua +++ b/lib/resty/openidc.lua @@ -358,7 +358,7 @@ local function openidc_authorize(opts, session, target_url, prompt) session:set("last_authenticated", ngx.time()) if opts.lifecycle and opts.lifecycle.on_created then - err = opts.lifecycle.on_created(session) + err = opts.lifecycle.on_created(session, params) if err then log(WARN, "failed in `on_created` handler: " .. err) return err