升级lua-resty-openidc 4.0.5-1后重定向出现无会话状态问题求助
lua-resty-openidc 4.0.5-1升级后OIDC认证会话状态丢失问题
问题现象
在NGINX反向代理环境中,使用lua-resty-openidc实现OIDC认证时:
- 认证流程可正常重定向至身份提供商(Identity Provider)
- 用户登录后重定向回应用时,触发错误:
request to the redirect_uri path but there's no session state found
前置背景
此前使用旧版本lua-resty-openidc时功能完全正常,升级至4.0.5-1版本后出现上述会话状态丢失问题。
相关代码
核心认证代码如下:
local res, err = require("resty.openidc").authenticate(opts)
疑问
- lua-resty-openidc 4.0.5-1在会话或Cookie处理上是否有变更?
内容的提问来源于stack exchange,提问作者coder
相关产品推荐
相关产品推荐

