From 3ddf72a24daa3649d01cbbe6a61a7425fe5019a6 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 3 Apr 2024 15:49:03 +0200 Subject: [PATCH] oidc: allow post logout redirect back to the app --- src/oidc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oidc.js b/src/oidc.js index 01b52310e..cd0c3de20 100644 --- a/src/oidc.js +++ b/src/oidc.js @@ -294,6 +294,9 @@ class CloudronAdapter { // prefix login redirect uris with app.fqdn if it is just a path without a schema // native callbacks for apps have custom schema like app.immich:/ tmp.redirect_uris = client.loginRedirectUri.split(',').map(s => s.trim()).map(s => url.parse(s).protocol ? s : `https://${app.fqdn}${s}`); + + // TODO this may need to come from the manifest like loginRedirectUri, but we have to first check other client implementations + tmp.post_logout_redirect_uris = [ `https://${app.fqdn}` ]; } else { tmp.redirect_uris = client.loginRedirectUri.split(',').map(s => s.trim()); }