luoluoyuyu commented on code in PR #10653:
URL: https://github.com/apache/apisix/pull/10653#discussion_r1433615195


##########
apisix/plugins/openid-connect.lua:
##########
@@ -504,7 +519,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, path, 
unauth_action, conf.session)

Review Comment:
   It's just for the code to be better understood, it doesn't change the code 
logic, the default used is also ngx.var.request_uri.   
https://github.com/zmartzone/lua-resty-openidc/blob/master/lib/resty/openidc.lua#L1461
 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to