lua-resty-session
lua-resty-session copied to clipboard
request to the redirect_uri_path but there's no session state found
Can someone throw some light and try to solve the problem.
@Chinnuganga, I have no idea of what you are asking.
This is an error returned by lua-resty-openidc (when it cannot find a session state prior to handling an authorization response from the OpenID Provider)
Same for me here: https://github.com/zmartzone/lua-resty-openidc/issues/462
Did some diggin' and for me, the update of lua-resty-session
to 4.0.0
breaks it.
This is working fine:
bash-5.1# luarocks list
Rocks installed for Lua 5.1
---------------------------
lua-resty-http
0.17.0.beta.1-0 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-jwt
0.2.3-0 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-openidc
1.7.6-1 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-openssl
0.8.17-1 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-session
3.10-1 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
Then update lua-resty-session
:
luarocks install lua-resty-session 4.0.0-1
After that is broken for me.
Versions:
bash-5.1# luarocks list
Rocks installed for Lua 5.1
---------------------------
lua-ffi-zlib
0.5-0 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-http
0.17.0.beta.1-0 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-jwt
0.2.3-0 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-openidc
1.7.6-1 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-openssl
0.8.17-1 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua-resty-session
4.0.0-1 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
lua_pack
2.0.0-0 (installed) - /usr/local/openresty/luajit/lib/luarocks/rocks-5.1
So lua-resty-session 3.x works for you, @MaxWinterstein ?
@bodewig yes. I adjusted my Dockerfile to install exactly the versions
RUN luarocks install --deps-mode none lua-resty-http 0.17.0.beta.1-0 && \
luarocks install --deps-mode none lua-resty-jwt 0.2.3-0 && \
luarocks install --deps-mode none lua-resty-openidc 1.7.6-1 && \
luarocks install --deps-mode none lua-resty-openssl 0.8.17-1 && \
luarocks install --deps-mode none lua-resty-session 3.10-1
And everything is fine for now.
As said, my knowledge about lua and its packing/dependency system is pretty limited, but simply installing 3.x did the job.
Same for me. If I install simply RUN luarocks install lua-resty-openidc
it crashes with the same error, if I run
RUN luarocks install lua-resty-session 3.10 && luarocks install lua-resty-openidc
it's working fine like before.
The lua-resty-openidc should pin the dependency to 3.x or update to 4.x.
The lua-resty-openidc should pin the dependency to 3.x or update to 4.x.
It already did so in version 1.7.6-3
if someone needs to use the openidc module with session v4, this pull request has the changes to make it work https://github.com/zmartzone/lua-resty-openidc/pull/489