You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 21:58:09