mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
migrate groups.enabled in oidc #6104
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
f1ba76a423
commit
bc6451fee5
1 changed files with 8 additions and 0 deletions
|
@ -7472,6 +7472,14 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
}
|
}
|
||||||
delete strategy.scope
|
delete strategy.scope
|
||||||
}
|
}
|
||||||
|
if (strategy.groups && strategy.groups.sync && strategy.groups.sync.enabled && strategy.groups.sync.enabled === true) {
|
||||||
|
if (strategy.groups.sync.filter) {
|
||||||
|
delete strategy.groups.sync.enabled;
|
||||||
|
} else {
|
||||||
|
strategy.groups.sync = true;
|
||||||
|
}
|
||||||
|
parent.authLog('migrateOldConfigs', `OIDC: OLD CONFIG: Moving old config to new location. strategy.groups.sync.enabled => strategy.groups.sync`);
|
||||||
|
}
|
||||||
return strategy
|
return strategy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue