You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "zsmlinux (via GitHub)" <gi...@apache.org> on 2023/05/25 07:32:38 UTC

[GitHub] [apisix] zsmlinux commented on issue #8726: help request: How to make session of plugin openid-connect longer?

zsmlinux commented on issue #8726:
URL: https://github.com/apache/apisix/issues/8726#issuecomment-1562419663

   > Configuring the session expiration time is not currently supported, but we can do it by modifying the code. APISIX use the [lua-resty-openidc](https://github.com/zmartzone/lua-resty-openidc) library to connect the IdP, and the lua-resty-openidc library use the [lus-resty-session](https://github.com/bungle/lua-resty-session) library to maintian the session, so we just need to pass the session argument to the lua-resty-session library. we need to change the session parameter of the openid-connect plugin, The call stack is as follows https://github.com/apache/apisix/blob/master/apisix/plugins/openid-connect.lua#L350 https://github.com/zmartzone/lua-resty-openidc/blob/master/lib/resty/openidc.lua#L1466 So I think add a configuration `session.cookie.lifetime` would help, you could have a try
   
   @monkeyDluffy6017 Can apisix support this configuration?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org