lua-resty-session icon indicating copy to clipboard operation
lua-resty-session copied to clipboard

request to the redirect_uri_path but there's no session state found

Open Chinnuganga opened this issue 3 years ago • 10 comments

Can someone throw some light and try to solve the problem.

Chinnuganga avatar Jun 02 '21 07:06 Chinnuganga

@Chinnuganga, I have no idea of what you are asking.

bungle avatar Jun 02 '21 13:06 bungle

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)

daverck avatar Nov 25 '22 08:11 daverck

Same for me here: https://github.com/zmartzone/lua-resty-openidc/issues/462

MaxWinterstein avatar Feb 02 '23 14:02 MaxWinterstein

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

MaxWinterstein avatar Feb 02 '23 14:02 MaxWinterstein

So lua-resty-session 3.x works for you, @MaxWinterstein ?

bodewig avatar Feb 02 '23 17:02 bodewig

@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.

MaxWinterstein avatar Feb 02 '23 21:02 MaxWinterstein

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.

Krzysztof-Nerwinski avatar Feb 03 '23 13:02 Krzysztof-Nerwinski

The lua-resty-openidc should pin the dependency to 3.x or update to 4.x.

bungle avatar Feb 12 '23 11:02 bungle

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

sebix avatar Feb 12 '23 11:02 sebix

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

GitDemis avatar Jul 22 '24 15:07 GitDemis