From dd56279626ff0d0d70204dd88ff4c8ec8130c703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Dubigny?= Date: Fri, 22 Mar 2024 19:01:00 +0100 Subject: [PATCH] feat: remove non documented custom style + add token hint for logout --- index.js | 2 ++ views/index.ejs | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 1408800..ae45967 100644 --- a/index.js +++ b/index.js @@ -129,10 +129,12 @@ app.get(process.env.CALLBACK_URL, async (req, res, next) => { app.post("/logout", async (req, res, next) => { try { + const id_token_hint = req.session.idtoken; req.session = null; const client = await getMcpClient(); const redirectUrl = client.endSessionUrl({ post_logout_redirect_uri: `${origin}/`, + id_token_hint, }); res.redirect(redirectUrl); diff --git a/views/index.ejs b/views/index.ejs index 5a933d8..e13a46d 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -34,17 +34,6 @@ } -