带有 Keycloak 错误 uthenticate() 的 Openidc:请求到 redirect_uri_path 但没有找到会话状态,客户端

All*_*lah 5 nginx openresty keycloak lua-resty-openidc

我使用 Openresty 作为服务器。根据https://eclipsesource.com/blogs/2018/01/11/authenticating-reverse-proxy-with-keycloak/,我有 nginx 的配置文件。

我收到以下错误“openidc.lua:1053: authenticate(): request to the redirect_uri_path 但没有找到会话状态,客户端”

有人可以抛出一些光并尝试解决问题。

问候,安拉巴克什

小智 5

您的重定向 URI 不能设置为,"/"而是设置为不应该返回内容的任意路径(如/redirect_uri)。这是一个“虚荣”的 URL,由lua-resty-openidc