fix oidc custom scope overriding auth params

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Jan 6, 2026 at 14:13 UTC be28612d1a1ace3a855632c6fa427b2380061881
1 file changed +2 -2
webserver.js
+2 -2
@@ -7967,9 +7967,9 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
7967 // Setup Strategy Options
7968 strategy.custom.scope = obj.common.convertStrArray(strategy.custom.scope, ' ')
7969 if (strategy.custom.scope.length > 1) {
7970 - strategy.options = Object.assign(strategy.options, { 'params': { 'scope': strategy.custom.scope } })
7970 + strategy.options.params = Object.assign(strategy.options.params || {}, { 'scope': strategy.custom.scope });
7971 } else {
7972 - strategy.options = Object.assign(strategy.options, { 'params': { 'scope': ['openid', 'profile', 'email'] } })
7972 + strategy.options.params = Object.assign(strategy.options.params || {}, { 'scope': ['openid', 'profile', 'email'] });
7973 }
7974 if (typeof strategy.groups == 'object') {
7975 let groupScope = strategy.groups.scope || null