UNPKG

@mvx/identity

Version:

identity is oidc for mvc, type-mvc is base on koa. Decorator, Ioc, AOP mvc framework on server.

39 lines (37 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OIDCError = void 0; const AuthenticationError_1 = require("./AuthenticationError"); /** * error. * * @export * @class OIDCError * @extends {HttpError} */ class OIDCError extends AuthenticationError_1.AuthenticationError { constructor(message, code, uri, status) { super(status, message); this.code = code; this.uri = uri; if (!status) { switch (code) { case 'access_denied': status = 403; break; case 'server_error': status = 502; break; case 'temporarily_unavailable': status = 503; break; } } this.expose = status < 500; } static ρAnn() { return { "name": "OIDCError" }; } } exports.OIDCError = OIDCError; //# sourceMappingURL=../sourcemaps/errors/OIDCError.js.map