-
-
Notifications
You must be signed in to change notification settings - Fork 253
Description
We are using the Kong and nokia/kong-oidc plugin to incorporate OIDC authentication.
Additionally, we are using lua-resty-openidc and lua-resty-session to store the ID Token in the session.
The session is stored in Redis.
After We upgrade Kong version from 1.5.1 to 2.8.5, the ID Token is not present in the session, causing authentication errors, and we are troubled by this issue.
Our expected value is session.data.id_token=true, but it is session.data.id_token=false, which leads us to believe that the ID Token is missing from the session.
I confirmed I was able to obtain the auth token, get access token and id token in the Authorization Code Flow.
2025/04/16 12:25:35 [notice] 1109#0: *3144532 [lua] openidc.lua:1477: authenticate(): nonce in session : xxxxxxxxxxxxxxxx, client: xxxxxxxx, server: kong, xxxxxxxx
2025/04/16 12:25:35 [debug] 1109#0: *3144532 [lua] openidc.lua:1526: authenticate(): session.present=true, session.data.id_token=false, session.data.authenticated=nil, opts.force_reauthorize=nil, opts.renew_access_token_on_expiry=nil, try_to_renew=true, token_expired=false
There is a similar issue raised, and I suspect that the error might be due to version incompatibility. I would appreciate your opinion on this matter.
#480
#528
#536
The specific versions we are using are as follows:
-
Current Old Version
Kong 1.5.1
lua-resty-openidc: 1.7.2-1
lua-resty-session: 2.24-1 -
Update Version
Kong 2.8.5
lua-resty-openidc: 1.7.2-1
lua-resty-session: 3.10-1
Thanks.