Skip to content
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

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

Open
Chinnuganga opened this issue Jun 2, 2021 · 10 comments
Open

Comments

@Chinnuganga
Copy link

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

@bungle
Copy link
Owner

bungle commented Jun 2, 2021

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

@daverck
Copy link

daverck commented Nov 25, 2022

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)

@MaxWinterstein
Copy link

Same for me here: zmartzone/lua-resty-openidc#462

@MaxWinterstein
Copy link

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

@bodewig
Copy link
Contributor

bodewig commented Feb 2, 2023

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

@MaxWinterstein
Copy link

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

@Krzysztof-Nerwinski
Copy link

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.

@bungle
Copy link
Owner

bungle commented Feb 12, 2023

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

@sebix
Copy link

sebix commented Feb 12, 2023

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

@GitDemis
Copy link

if someone needs to use the openidc module with session v4, this pull request has the changes to make it work
zmartzone/lua-resty-openidc#489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants