From 76385b5fda180a0eb84c9d25a33900daf6e52b89 Mon Sep 17 00:00:00 2001 From: KubeSphere CI Bot <47586280+ks-ci-bot@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:14:54 +0800 Subject: [PATCH] [master] fix(node): update logout handling to redirect instead of returning URL by OIDC (#4459) fix(node): update logout handling to redirect instead of returning URL by OIDC Signed-off-by: donniean Co-authored-by: donniean --- server/controllers/session.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/controllers/session.js b/server/controllers/session.js index b60b4447ad8..28a9e41df17 100644 --- a/server/controllers/session.js +++ b/server/controllers/session.js @@ -357,7 +357,8 @@ const handleLogout = async ctx => { oAuthLoginInfo.endSessionURL ) { const url = `${oAuthLoginInfo.endSessionURL}`; - ctx.body = { data: { url }, success: true }; + // ctx.body = { data: { url }, success: true }; + ctx.redirect(url); } else { const { origin = '', referer = '' } = ctx.headers; const refererPath = referer.replace(origin, '');