mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -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;
|
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…
Add table
Add a link
Reference in a new issue