Skip to content

Commit

Permalink
calling authenticate with the full opts object to avoid occasional ti…
Browse files Browse the repository at this point in the history
…ming issues resulting in unnecessary auth redirect
  • Loading branch information
brentmjohnson committed Dec 29, 2023
1 parent 538b964 commit aa7e581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/openid-connect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ function _M.rewrite(plugin_conf, ctx)
-- provider's authorization endpoint to initiate the Relying Party flow.
-- This code path also handles when the ID provider then redirects to
-- the configured redirect URI after successful authentication.
response, err, _, session = openidc.authenticate(conf, nil, unauth_action, conf.session)
response, err, _, session = openidc.authenticate(conf, nil, unauth_action, conf)

if err then
if err == "unauthorized request" then
Expand Down

0 comments on commit aa7e581

Please sign in to comment.