Oldřich Jedlička
Oldřich Jedlička
> I get the following error when trying to logout a user that happens to not be logged-in, which used to work: > > ``` > lua entry thread aborted:...
I have renamed the Pull Request to indicate this is more up-to-date than the second (unmaintained) one. Anyway, enjoy 🚀😁
Just for info: We are using the code from this Pull Request in our project in `Dockerfile` in the following way: ``` ARG KONG_GW_FLAVOR="kong/kong-gateway" ARG KONG_GW_VERSION="3.4.3.2-ubuntu" FROM docker.io/${KONG_GW_FLAVOR}:${KONG_GW_VERSION} ... #...
It looks like the tests fail randomly - ~~may be because of timing of flushing the nginx logs to disk?~~ EDIT: This was caused by non-padded Base64 decoding
Fixed decoding of Base64Url in tests (old issue), so they should pass now.
I have to say that ChatGPT recommended the Base64 fix and it really worked...
> I see a warning when I try to use this: > > ``` > 2023/07/13 16:25:57 [warn] 7#7: *1 [lua] _G write guard:12: __newindex(): writing a global Lua variable...
> 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_...
Access token refresh cannot work, `session:refresh()` is not the same as previous `session:regenerate()`.
I reworked the approach (I used `session:get` and `session:set` to work with session data) and tried to address few missing bits (`session` in `session_or_opts`, token refresh, `is_session` check) [here](https://github.com/oldium/lua-resty-openidc/tree/resty-session-4.x) (_untested_...