From 90508c15ff68fdfd76c32c72fe283d44f24a595e Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Tue, 12 Nov 2024 20:45:47 +0100 Subject: [PATCH] fix(backend/auth/oidc): add log message when user identifier is missing Signed-off-by: Erik Michelson --- backend/src/api/private/auth/oidc/oidc.controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/api/private/auth/oidc/oidc.controller.ts b/backend/src/api/private/auth/oidc/oidc.controller.ts index 82521494e..286173f2e 100644 --- a/backend/src/api/private/auth/oidc/oidc.controller.ts +++ b/backend/src/api/private/auth/oidc/oidc.controller.ts @@ -70,6 +70,7 @@ export class OidcController { ); const oidcUserIdentifier = request.session.providerUserId; if (!oidcUserIdentifier) { + this.logger.log('No OIDC user identifier in callback', 'callback'); throw new UnauthorizedException('No OIDC user identifier found'); } const identity = await this.oidcService.getExistingOidcIdentity(