1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions[bot]
87a27a07aa Bumped version to 2022.11.0 (#290)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
(cherry picked from commit a528480e07)
2022-11-29 18:42:59 +00:00
Vincent Salucci
cf123ae232 [EC-682] Adjust group query assignment (#287) 2022-11-08 21:32:48 -06:00
2 changed files with 7 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"name": "@bitwarden/directory-connector", "name": "@bitwarden/directory-connector",
"productName": "Bitwarden Directory Connector", "productName": "Bitwarden Directory Connector",
"description": "Sync your user directory to your Bitwarden organization.", "description": "Sync your user directory to your Bitwarden organization.",
"version": "2022.6.0", "version": "2022.11.0",
"author": "Bitwarden Inc. <hello@bitwarden.com> (https://bitwarden.com)", "author": "Bitwarden Inc. <hello@bitwarden.com> (https://bitwarden.com)",
"homepage": "https://bitwarden.com", "homepage": "https://bitwarden.com",
"license": "GPL-3.0", "license": "GPL-3.0",

View File

@@ -157,7 +157,12 @@ export class GSuiteDirectoryService extends BaseDirectoryService implements IDir
// eslint-disable-next-line // eslint-disable-next-line
while (true) { while (true) {
this.logService.info("Querying groups - nextPageToken:" + nextPageToken); this.logService.info("Querying groups - nextPageToken:" + nextPageToken);
const p = Object.assign({ query: query, pageToken: nextPageToken }, this.authParams); let p = null;
if (query == null) {
p = Object.assign({ pageToken: nextPageToken }, this.authParams);
} else {
p = Object.assign({ query: query, pageToken: nextPageToken }, this.authParams);
}
const res = await this.service.groups.list(p); const res = await this.service.groups.list(p);
if (res.status !== 200) { if (res.status !== 200) {
throw new Error("Group list API failed: " + res.statusText); throw new Error("Group list API failed: " + res.statusText);