mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
fix(backend/auth/oidc): add log message when user identifier is missing
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
623c14c9a1
commit
015e04f13a
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue