Skip to content

Commit

Permalink
migrate groups.enabled in oidc #6104
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed May 21, 2024
1 parent f1ba76a commit bc6451f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -7472,6 +7472,14 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
}
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
}

Expand Down

0 comments on commit bc6451f

Please sign in to comment.