tangjun2012 opened a new issue #3200:
URL: https://github.com/apache/apisix/issues/3200
### Issue description
`
"plugins": {
"openid-connect": {
"client_id": "aaaaaaa",
"client_secret": "bbbbbbb",
"discovery":
"https://ccccc/.well-known/openid-configuration",
"redirect_uri":"https://ddd.com/callback"
}
}
`
I had the same problem as [bug](https://github.com/apache/apisix/issues/2426)
When the page enters redirect_uri
`
2021/01/06 10:28:17 [error] 63#63: *13976465 [lua] openidc.lua:1378:
authenticate(): request to the redirect_uri path but there's no session state
found, client: 10.51.71.140, server: , request: "GET
/callback?code=jcovfcyh2x2fuxaxqxdf25bsu&state=e0d730e54a012e6d008ec0635477ba28
HTTP/1.1"
2021/01/06 10:28:17 [error] 63#63: *13976465 [lua] openid-connect.lua:300:
phase_fun(): OIDC authentication failed: request to the redirect_uri path but
there's no session state found type: table, client: 10.51.71.140, server: ,
request: "GET
/callback?code=jcovfcyh2x2fuxaxqxdf25bsu&state=e0d730e54a012e6d008ec0635477ba28
HTTP/1.1"
`
https://github.com/zmartzone/lua-resty-openidc/blob/v1.7.2/lib/resty/openidc.lua
Line 1361
local session, session_error = r_session.start(session_opts)
https://github.com/bungle/lua-resty-session/blob/v2.24/lib/resty/session.lua
Line 320
return self, present
session_error receives the value of present,session is not initialized
present
### Environment
* apisix version (cmd: `apisix version`):
* OS: (cmd: `uname -a`)
* OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`)
### Minimal test code / Steps to reproduce the issue
1.
2.
3.
### What's the actual result? (including assertion message & call stack if
applicable)
### What's the expected result?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]