Skip to content

Commit

Permalink
[master] fix(node): update logout handling to redirect instead of ret…
Browse files Browse the repository at this point in the history
…urning URL by OIDC (#4459)

fix(node): update logout handling to redirect instead of returning URL by OIDC

Signed-off-by: donniean <[email protected]>
Co-authored-by: donniean <[email protected]>
  • Loading branch information
ks-ci-bot and donniean authored Jan 23, 2025
1 parent 34ee257 commit 76385b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/controllers/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
Expand Down

0 comments on commit 76385b5

Please sign in to comment.