Compare commits

...

3 Commits

Author SHA1 Message Date
Tom Moor 4ac31eec2e chore: Remove usage of deprecated docker build image 2024-10-16 18:59:59 -04:00
Tom Moor 9c85371f1d 0.80.2-ms-debug 2024-10-16 18:41:49 -04:00
Tom Moor be62497f2a Add debug logging 2024-10-16 18:41:21 -04:00
3 changed files with 15 additions and 3 deletions
+1 -2
View File
@@ -108,8 +108,7 @@ jobs:
executor: docker-publisher
steps:
- checkout
- setup_remote_docker:
version: 20.10.6
- setup_remote_docker
- run:
name: Install Docker buildx
command: |
+1 -1
View File
@@ -367,5 +367,5 @@
"qs": "6.9.7",
"rollup": "^4.5.1"
},
"version": "0.80.2"
"version": "0.80.2-ms-debug"
}
+13
View File
@@ -8,6 +8,7 @@ import { slugifyDomain } from "@shared/utils/domains";
import { parseEmail } from "@shared/utils/email";
import accountProvisioner from "@server/commands/accountProvisioner";
import { MicrosoftGraphError } from "@server/errors";
import Logger from "@server/logging/Logger";
import passportMiddleware from "@server/middlewares/passport";
import { User } from "@server/models";
import { AuthenticationResult } from "@server/types";
@@ -75,6 +76,18 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) {
);
}
if (!organizationResponse.value) {
Logger.info(
"authentication",
"API response missing value key",
organizationResponse
);
throw MicrosoftGraphError(
"Unable to load organization value from Microsoft Graph API"
);
}
const organization = organizationResponse.value[0];
// Note: userPrincipalName is last here for backwards compatibility with