mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05: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
313b823cbf
commit
90508c15ff
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ export class OidcController {
|
||||||
);
|
);
|
||||||
const oidcUserIdentifier = request.session.providerUserId;
|
const oidcUserIdentifier = request.session.providerUserId;
|
||||||
if (!oidcUserIdentifier) {
|
if (!oidcUserIdentifier) {
|
||||||
|
this.logger.log('No OIDC user identifier in callback', 'callback');
|
||||||
throw new UnauthorizedException('No OIDC user identifier found');
|
throw new UnauthorizedException('No OIDC user identifier found');
|
||||||
}
|
}
|
||||||
const identity = await this.oidcService.getExistingOidcIdentity(
|
const identity = await this.oidcService.getExistingOidcIdentity(
|
||||||
|
|
Loading…
Reference in a new issue