Skip to content

Commit

Permalink
Allow changing of query parameters in on_created call
Browse files Browse the repository at this point in the history
Signed-off-by: Oldřich Jedlička <[email protected]>
  • Loading branch information
oldium committed Dec 28, 2023
1 parent 53299ec commit e5ede9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/openidc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5ede9f

Please sign in to comment.