Closed lordgreg closed 1 year ago
After several days, I have figured out it was the dependency mismatch!
After checking the plugin versions with luarocks list
I've found out that there were two versions of lua-resty-session
installed:
lua-resty-session
4.0.3-1 (installed) - /usr/local/lib/luarocks/rocks-5.1
3.10-1 (installed) - /usr/local/lib/luarocks/rocks-5.1
The 4.0.3-1
comes from kong 3.3.0
and the 3.10-1
comes from lua-resty-openidc 1.7.6-3.
It looks like, even though 3.10-1 is installed, the configuration somehow took the version 4. As soon as I've removed the version 4 with luarocks remove lua-resty-session 4.0.3-1 --force
and restarted kong, everything started working without any issues.
There is currently PR open https://github.com/zmartzone/lua-resty-openidc/pull/478 which, if updated correctly, should only include one specific version.
Same issue as https://github.com/zmartzone/lua-resty-openidc/issues/480, it'd be great to get https://github.com/zmartzone/lua-resty-openidc/pull/478 reviewed and merged.
Hi,
I'm using latest Kong gateway with this plugin. I've created the service, route and plugin (I've also added the additional service and route to check if the connection without oidc plugin is working).
My hostnames are:
http://kong-gateway/ (gateway) http://kong-admin/ (as an admin api) http://example-service/ http://kong-gateway/example-service redirects to example service without OIDC and http://kong-gateway/example-oidc redirects to example service with OIDC
REDIRECT URI for oidc plugin is **http://kong-gateway/example-oidc
After successful redirect, I am getting:
request to the redirect_uri path but there's no session state found.
What am I missing here?