Reconfigure apps on dashboard domain change, if they use oidc addon

This commit is contained in:
Johannes Zellner
2023-07-21 17:10:25 +02:00
parent 00b5438ec5
commit 4c185fb3b4
3 changed files with 8 additions and 4 deletions

View File

@@ -283,7 +283,11 @@ async function updateDashboardDomain(domain, auditSource) {
await setDashboardDomain(domain, auditSource);
safe(services.rebuildService('turn', auditSource), { debug }); // to update the realm variable
// mark apps using oidc addon to be reconfigured
const [, installedApps] = await safe(apps.list());
await safe(apps.configureInstalledApps(installedApps.filter((a) => !!a.manifest.addons.oidc), auditSource));
await safe(services.rebuildService('turn', auditSource), { debug }); // to update the realm variable
await oidc.stop();
await oidc.start();