passport-wsfed-saml2
Version:
SAML2 Protocol and WS-Fed library
14 lines (11 loc) • 458 B
JavaScript
function AuthenticationFailedError (message, detail, status) {
var err = Error.call(this, message);
err.name = 'AuthenticationFailedError';
err.message = message || 'Authentication Failed';
err.detail = detail;
err.status = status || 401;
return err;
}
AuthenticationFailedError.prototype = Object.create(Error.prototype);
AuthenticationFailedError.prototype.constructor = AuthenticationFailedError;
module.exports = AuthenticationFailedError;