return more than 100 groups for azure oidc #6669

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

si458 committed Feb 5, 2025 at 21:21 UTC 1310c57397e899aa95015f390c03947b654cacf0
1 file changed +1 -1
webserver.js
+1 -1
@@ -7840,7 +7840,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
7840
7841 async function getGroups(preset, tokenset) {
7842 let url = '';
7843 - if (preset == 'azure') { url = strategy.groups.recursive == true ? 'https://graph.microsoft.com/v1.0/me/transitiveMemberOf' : 'https://graph.microsoft.com/v1.0/me/memberOf'; }
7843 + if (preset == 'azure') { url = strategy.groups.recursive == true ? 'https://graph.microsoft.com/v1.0/me/transitiveMemberOf?$top=999' : 'https://graph.microsoft.com/v1.0/me/memberOf?$top=999'; }
7844 if (preset == 'google') { url = strategy.custom.customer_id ? 'https://cloudidentity.googleapis.com/v1/groups?parent=customers/' + strategy.custom.customer_id : strategy.custom.identitysource ? 'https://cloudidentity.googleapis.com/v1/groups?parent=identitysources/' + strategy.custom.identitysource : null; }
7845 return new Promise((resolve, reject) => {
7846 const options = {