-
-
Notifications
You must be signed in to change notification settings - Fork 253
Migrate lua-resty-session to 4.0.3 #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Balaji Vijayakumar <[email protected]>
@bodewig IMHO I think this works well. how about it? |
@balajiv113 I think you missed some point of |
@darjeeling could you give more context on the issues that you are facing ?? I ran the current changes with the integration tests that was there. All were passing |
Hi there. I have few crazy days behind me figuring out the issue with "request to the redirect_uri path but there's no session state found". Turns out two versions of lua-resty-session are installed (see more info here revomatico/kong-oidc#34). Is there anything open here or can the PR be merged? |
Any updates on this or ETA would be greatly appreciated. As @lordgreg pointed out, this would fix a compatibility issue with Kong version 3 which is currently preventing us from using the https://github.com/revomatico/kong-oidc plugin. |
I see a warning when I try to use this:
|
I found a bug with function is_session. Session v4 cause the type of session.start being nil. To make function woks properly, need to check state property instead of start
|
You need to add local session, session_present in function |
It would be better to check some actually called function, like local function is_session(o)
return o ~= nil and o.save and type(o.save) == "function"
end |
Access token refresh cannot work, |
I reworked the approach (I used |
Unfortunately I myself completely lack the time to understand what has changed between 3 and 4 and how to migrate this library right now. I'm very grateful for your effort here. A very cursory glance over lua-resty-session 4.x a few weeks (months?) ago convinced me that migrating would mean more than the changes made initially in this PR and then life interfered. |
All issues mentioned here are fixed in #489. It uses |
closing this if favor of #489 |
Fixes #464