Reconfigure apps on dashboard domain change, if they use oidc addon
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user