You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After successful OpenID Connect authentication, the generated cookie field is session and cannot be modified. If the cookie field of the business system is also session, the latter will overwrite the OIDC cookie session.
Expected Behavior
Add a name configuration parameter to schema.session of the OpenID Connect plugin to support customizing the cookie field name.
example as fllow:
session = {
type = "object",
properties = {
name = {
type = "string",
description = "session name",
default = "OIDC_SESSION",
},
secret = {
type = "string",
description = "the key used for the encrypt and HMAC calculation",
minLength = 16,
},
Error Logs
No response
Steps to Reproduce
The cookie field generated by the business system is set to session.
Deploy APISIX to connect to a certain authentication source.
APISIX uses the header identity passthrough method when connecting to the business system.
After successful APISIX SSO authentication, a cookie with the field session is generated, and requests to the business system are forwarded normally.
If the business system response sets a cookie with the same field session, it will overwrite the session cookie generated by APISIX.
Environment
APISIX version (run apisix version): 3.14
Operating system (run uname -a): Linux localhost.localdomain 5.10.134-13.an8.x86_64 change: added doc of how to load plugin. #1 SMP Mon Jan 9 10:39:46 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.27.1.2
etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
APISIX Dashboard version, if relevant:
Plugin runner version, for issues related to plugin runners:
LuaRocks version, for installation issues (run luarocks --version):
Current Behavior
After successful OpenID Connect authentication, the generated cookie field is session and cannot be modified. If the cookie field of the business system is also session, the latter will overwrite the OIDC cookie session.
Expected Behavior
Add a
nameconfiguration parameter toschema.sessionof the OpenID Connect plugin to support customizing the cookie field name.example as fllow:
session = {
type = "object",
properties = {
name = {
type = "string",
description = "session name",
default = "OIDC_SESSION",
},
secret = {
type = "string",
description = "the key used for the encrypt and HMAC calculation",
minLength = 16,
},
Error Logs
No response
Steps to Reproduce
session.sessionis generated, and requests to the business system are forwarded normally.session, it will overwrite thesessioncookie generated by APISIX.Environment
apisix version): 3.14uname -a): Linux localhost.localdomain 5.10.134-13.an8.x86_64 change: added doc of how to load plugin. #1 SMP Mon Jan 9 10:39:46 CST 2023 x86_64 x86_64 x86_64 GNU/Linuxopenresty -Vornginx -V): nginx version: openresty/1.27.1.2curl http://127.0.0.1:9090/v1/server_info):luarocks --version):