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;
}
&& 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 });
}
}
'SameSite=Lax',
`Path=${this.options.dingus.proxyPrefix}/`,
];
- if (this.options.authenticator.secureAuthOnly) {
+ if (this.secureAuthOnly) {
cookieParts.push('Secure');
}
res.setHeader(Enum.Header.SetCookie, cookieParts.join('; '));