X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fauthenticator.js;h=040834fd650cd46b4d61f6b03c1acf647721d0ff;hb=392502c5cc0cb12cf3c00ecd06c5c69b3e00d7e3;hp=c69ada91c6ed6a5234942b1e6ae8eb92a420d7e6;hpb=93fbeab317901033612318b672aff060682df8a6;p=squeep-authentication-module diff --git a/lib/authenticator.js b/lib/authenticator.js index c69ada9..040834f 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -51,7 +51,8 @@ class Authenticator { throw new Error('no authentication mechanisms available'); } - this.mysteryBox = new MysteryBox(logger, options); + this.mysteryBox = new MysteryBox(options); + this.mysteryBox.on('statistics', common.mysteryBoxLogger(logger, _fileScope(this.constructor.name))); this.cookieLifespan = options.authenticator.inactiveSessionLifespanSeconds || 60 * 60 * 24 * 32; } @@ -86,7 +87,7 @@ class Authenticator { && this.authnEnabled.includes('pam')) { isValid = this._isValidPAMIdentifier(identifier, credential); } else { - this.logger.error(_scope, 'failed, unknown type of stored credential', { identifier, ctx }); + this.logger.error(_scope, 'failed, unknown or unsupported type of stored credential', { identifier, ctx }); } }