@venizia/ignis 0.1.1-10 → 0.1.1-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/middlewares/common/errors.d.ts +18 -0
- package/dist/base/middlewares/common/errors.d.ts.map +1 -0
- package/dist/base/middlewares/common/errors.js +13 -0
- package/dist/base/middlewares/common/errors.js.map +1 -0
- package/dist/base/middlewares/common/index.d.ts +2 -0
- package/dist/base/middlewares/common/index.d.ts.map +1 -0
- package/dist/base/middlewares/common/index.js +18 -0
- package/dist/base/middlewares/common/index.js.map +1 -0
- package/dist/base/middlewares/index.d.ts +1 -0
- package/dist/base/middlewares/index.d.ts.map +1 -1
- package/dist/base/middlewares/index.js +1 -0
- package/dist/base/middlewares/index.js.map +1 -1
- package/dist/base/middlewares/request-spy/request-spy.middleware.d.ts.map +1 -1
- package/dist/base/middlewares/request-spy/request-spy.middleware.js +2 -1
- package/dist/base/middlewares/request-spy/request-spy.middleware.js.map +1 -1
- package/dist/base/repositories/common/errors.d.ts +18 -0
- package/dist/base/repositories/common/errors.d.ts.map +1 -0
- package/dist/base/repositories/common/errors.js +13 -0
- package/dist/base/repositories/common/errors.js.map +1 -0
- package/dist/base/repositories/common/index.d.ts +1 -0
- package/dist/base/repositories/common/index.d.ts.map +1 -1
- package/dist/base/repositories/common/index.js +1 -0
- package/dist/base/repositories/common/index.js.map +1 -1
- package/dist/components/auth/authenticate/common/errors.d.ts +91 -0
- package/dist/components/auth/authenticate/common/errors.d.ts.map +1 -0
- package/dist/components/auth/authenticate/common/errors.js +80 -0
- package/dist/components/auth/authenticate/common/errors.js.map +1 -0
- package/dist/components/auth/authenticate/common/index.d.ts +1 -0
- package/dist/components/auth/authenticate/common/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/common/index.js +1 -0
- package/dist/components/auth/authenticate/common/index.js.map +1 -1
- package/dist/components/auth/authenticate/providers/authentication.provider.d.ts.map +1 -1
- package/dist/components/auth/authenticate/providers/authentication.provider.js +8 -6
- package/dist/components/auth/authenticate/providers/authentication.provider.js.map +1 -1
- package/dist/components/auth/authenticate/services/basic/service.d.ts.map +1 -1
- package/dist/components/auth/authenticate/services/basic/service.js +5 -5
- package/dist/components/auth/authenticate/services/basic/service.js.map +1 -1
- package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts.map +1 -1
- package/dist/components/auth/authenticate/services/bearer/abstract.service.js +9 -7
- package/dist/components/auth/authenticate/services/bearer/abstract.service.js.map +1 -1
- package/dist/components/auth/authorize/common/errors.d.ts +51 -0
- package/dist/components/auth/authorize/common/errors.d.ts.map +1 -0
- package/dist/components/auth/authorize/common/errors.js +43 -0
- package/dist/components/auth/authorize/common/errors.js.map +1 -0
- package/dist/components/auth/authorize/common/index.d.ts +1 -0
- package/dist/components/auth/authorize/common/index.d.ts.map +1 -1
- package/dist/components/auth/authorize/common/index.js +1 -0
- package/dist/components/auth/authorize/common/index.js.map +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts.map +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js.map +1 -1
- package/dist/components/auth/authorize/providers/authorization.provider.d.ts.map +1 -1
- package/dist/components/auth/authorize/providers/authorization.provider.js +6 -4
- package/dist/components/auth/authorize/providers/authorization.provider.js.map +1 -1
- package/dist/components/static-asset/common/errors.d.ts +66 -0
- package/dist/components/static-asset/common/errors.d.ts.map +1 -0
- package/dist/components/static-asset/common/errors.js +55 -0
- package/dist/components/static-asset/common/errors.js.map +1 -0
- package/dist/components/static-asset/common/index.d.ts +1 -0
- package/dist/components/static-asset/common/index.d.ts.map +1 -1
- package/dist/components/static-asset/common/index.js +1 -0
- package/dist/components/static-asset/common/index.js.map +1 -1
- package/dist/components/static-asset/controller/factory.d.ts.map +1 -1
- package/dist/components/static-asset/controller/factory.js +18 -60
- package/dist/components/static-asset/controller/factory.js.map +1 -1
- package/dist/connectors/postgres/repositories/core/soft-deletable.d.ts.map +1 -1
- package/dist/connectors/postgres/repositories/core/soft-deletable.js +3 -1
- package/dist/connectors/postgres/repositories/core/soft-deletable.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TRegisterErrors } from '@venizia/ignis-helpers';
|
|
2
|
+
/** Codes a client branches on for a request the middleware layer refused before any handler ran. */
|
|
3
|
+
export declare const RequestErrors: {
|
|
4
|
+
readonly BODY_MALFORMED: {
|
|
5
|
+
readonly message: {
|
|
6
|
+
readonly text: "Malformed body payload";
|
|
7
|
+
readonly code: "core.request.body_malformed";
|
|
8
|
+
};
|
|
9
|
+
readonly statusCode: 400;
|
|
10
|
+
readonly category: "validation";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** Registers these codes with the shared key registry so a consumer gets autocomplete on `messageCode`. */
|
|
14
|
+
declare module '@venizia/ignis-helpers' {
|
|
15
|
+
interface IErrorKeyRegistry extends TRegisterErrors<typeof RequestErrors> {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/common/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGhF,oGAAoG;AACpG,eAAO,MAAM,aAAa;;;;;;;;;CAM2B,CAAC;AAEtD,2GAA2G;AAC3G,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,iBAAkB,SAAQ,eAAe,CAAC,OAAO,aAAa,CAAC;KAAG;CAC7E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestErrors = void 0;
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
|
+
/** Codes a client branches on for a request the middleware layer refused before any handler ran. */
|
|
6
|
+
exports.RequestErrors = {
|
|
7
|
+
BODY_MALFORMED: {
|
|
8
|
+
message: { text: 'Malformed body payload', code: 'core.request.body_malformed' },
|
|
9
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.BadRequest,
|
|
10
|
+
category: ignis_helpers_1.ErrorScopes.VALIDATION,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/base/middlewares/common/errors.ts"],"names":[],"mappings":";;;AACA,0DAA2D;AAE3D,oGAAoG;AACvF,QAAA,aAAa,GAAG;IAC3B,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,6BAA6B,EAAE;QAChF,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU;QAC5C,QAAQ,EAAE,2BAAW,CAAC,UAAU;KACjC;CACkD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errors"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/middlewares/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
17
18
|
__exportStar(require("./app-error"), exports);
|
|
18
19
|
__exportStar(require("./emoji-favicon"), exports);
|
|
19
20
|
__exportStar(require("./not-found"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-spy.middleware.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA+B,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"request-spy.middleware.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA+B,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,wFAAwF;AACxF,qBAAa,oBAAqB,SAAQ,UAAW,YAAW,SAAS,CAAC,iBAAiB,CAAC;IAC1F,MAAM,CAAC,QAAQ,CAAC,cAAc,eAAe;IAE7C,OAAO,CAAC,WAAW,CAAU;;IAS7B,wDAAwD;IAClD,SAAS,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAyCjE,wEAAwE;IACxE,KAAK;CAmDN"}
|
|
@@ -4,6 +4,7 @@ exports.RequestSpyMiddleware = void 0;
|
|
|
4
4
|
const network_utility_1 = require("../../../utilities/network.utility");
|
|
5
5
|
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
6
6
|
const factory_1 = require("hono/factory");
|
|
7
|
+
const common_1 = require("../common");
|
|
7
8
|
/** Logs incoming/outgoing request details. Body/query only logged in non-production. */
|
|
8
9
|
class RequestSpyMiddleware extends ignis_helpers_1.BaseHelper {
|
|
9
10
|
static { this.REQUEST_ID_KEY = 'requestId'; }
|
|
@@ -42,7 +43,7 @@ class RequestSpyMiddleware extends ignis_helpers_1.BaseHelper {
|
|
|
42
43
|
}
|
|
43
44
|
catch {
|
|
44
45
|
throw (0, ignis_helpers_1.getError)({
|
|
45
|
-
|
|
46
|
+
error: common_1.RequestErrors.BODY_MALFORMED,
|
|
46
47
|
message: 'Malformed Body Payload',
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-spy.middleware.js","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAC5D,0DAAiF;AAEjF,0CAAgD;
|
|
1
|
+
{"version":3,"file":"request-spy.middleware.js","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAC5D,0DAAiF;AAEjF,0CAAgD;AAGhD,sCAA0C;AAE1C,wFAAwF;AACxF,MAAa,oBAAqB,SAAQ,0BAAU;aAClC,mBAAc,GAAG,WAAW,CAAC;IAI7C;QACE,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QAC1B,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;QACjC,MAAM,GAAG,GAAG,QAAQ,EA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AAI,CACL,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,gCAAgC,EAChC,SAAS,EACT,QAAQ,EACR,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,EACrB,IAAI,EACJ,KAAK,CACN,CAAC;YACJ,CAAC;YAED,MAAM,IAAI,EAAE,CAAC;YAEb,MAAM,QAAQ,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACpD,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,oCAAoC,EACpC,SAAS,EACT,QAAQ,EACR,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,EACrB,IAAI,EACJ,QAAQ,CACT,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;;AAzGH,oDA0GC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TRegisterErrors } from '@venizia/ignis-helpers';
|
|
2
|
+
/** Codes a client branches on for a repository-level failure that is the caller's fault, not the server's. */
|
|
3
|
+
export declare const RepositoryErrors: {
|
|
4
|
+
readonly ENTITY_NOT_FOUND: {
|
|
5
|
+
readonly message: {
|
|
6
|
+
readonly text: "Entity not found";
|
|
7
|
+
readonly code: "core.repository.entity_not_found";
|
|
8
|
+
};
|
|
9
|
+
readonly statusCode: 404;
|
|
10
|
+
readonly category: "business";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** Registers these codes with the shared key registry so a consumer gets autocomplete on `messageCode`. */
|
|
14
|
+
declare module '@venizia/ignis-helpers' {
|
|
15
|
+
interface IErrorKeyRegistry extends TRegisterErrors<typeof RepositoryErrors> {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGhF,8GAA8G;AAC9G,eAAO,MAAM,gBAAgB;;;;;;;;;CAMwB,CAAC;AAEtD,2GAA2G;AAC3G,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,iBAAkB,SAAQ,eAAe,CAAC,OAAO,gBAAgB,CAAC;KAAG;CAChF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryErrors = void 0;
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
|
+
/** Codes a client branches on for a repository-level failure that is the caller's fault, not the server's. */
|
|
6
|
+
exports.RepositoryErrors = {
|
|
7
|
+
ENTITY_NOT_FOUND: {
|
|
8
|
+
message: { text: 'Entity not found', code: 'core.repository.entity_not_found' },
|
|
9
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.NotFound,
|
|
10
|
+
category: ignis_helpers_1.ErrorScopes.BUSINESS,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/base/repositories/common/errors.ts"],"names":[],"mappings":";;;AACA,0DAA2D;AAE3D,8GAA8G;AACjG,QAAA,gBAAgB,GAAG;IAC9B,gBAAgB,EAAE;QAChB,OAAO,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,kCAAkC,EAAE;QAC/E,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;QAC1C,QAAQ,EAAE,2BAAW,CAAC,QAAQ;KAC/B;CACkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errors"), exports);
|
|
17
18
|
__exportStar(require("../query-schemas"), exports);
|
|
18
19
|
__exportStar(require("./constants"), exports);
|
|
19
20
|
__exportStar(require("./operators"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,8CAA4B;AAC5B,8CAA4B;AAC5B,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,8CAA4B;AAC5B,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { TRegisterErrors } from '@venizia/ignis-helpers';
|
|
2
|
+
/** Codes a client branches on for a failed authentication. A throw site may override `message` for detail; the code and status come from here. */
|
|
3
|
+
export declare const AuthenticationErrors: {
|
|
4
|
+
readonly HEADER_MISSING: {
|
|
5
|
+
readonly message: {
|
|
6
|
+
readonly text: "Missing authorization header";
|
|
7
|
+
readonly code: "core.authentication.header_missing";
|
|
8
|
+
};
|
|
9
|
+
readonly statusCode: 401;
|
|
10
|
+
readonly category: "auth";
|
|
11
|
+
};
|
|
12
|
+
readonly SCHEME_INVALID: {
|
|
13
|
+
readonly message: {
|
|
14
|
+
readonly text: "Unsupported authorization scheme";
|
|
15
|
+
readonly code: "core.authentication.scheme_invalid";
|
|
16
|
+
};
|
|
17
|
+
readonly statusCode: 401;
|
|
18
|
+
readonly category: "auth";
|
|
19
|
+
};
|
|
20
|
+
readonly HEADER_MALFORMED: {
|
|
21
|
+
readonly message: {
|
|
22
|
+
readonly text: "Malformed authorization header";
|
|
23
|
+
readonly code: "core.authentication.header_malformed";
|
|
24
|
+
};
|
|
25
|
+
readonly statusCode: 401;
|
|
26
|
+
readonly category: "auth";
|
|
27
|
+
};
|
|
28
|
+
readonly TOKEN_MISSING: {
|
|
29
|
+
readonly message: {
|
|
30
|
+
readonly text: "Missing request token";
|
|
31
|
+
readonly code: "core.authentication.token_missing";
|
|
32
|
+
};
|
|
33
|
+
readonly statusCode: 401;
|
|
34
|
+
readonly category: "auth";
|
|
35
|
+
};
|
|
36
|
+
/** Covers expiry, a bad signature and a malformed token alike - the reason rides in `cause`, never in the code a client sees. */
|
|
37
|
+
readonly TOKEN_INVALID: {
|
|
38
|
+
readonly message: {
|
|
39
|
+
readonly text: "Invalid or expired token";
|
|
40
|
+
readonly code: "core.authentication.token_invalid";
|
|
41
|
+
};
|
|
42
|
+
readonly statusCode: 401;
|
|
43
|
+
readonly category: "auth";
|
|
44
|
+
};
|
|
45
|
+
readonly TOKEN_PAYLOAD_INVALID: {
|
|
46
|
+
readonly message: {
|
|
47
|
+
readonly text: "Invalid token payload";
|
|
48
|
+
readonly code: "core.authentication.token_payload_invalid";
|
|
49
|
+
};
|
|
50
|
+
readonly statusCode: 401;
|
|
51
|
+
readonly category: "auth";
|
|
52
|
+
};
|
|
53
|
+
readonly CREDENTIALS_MALFORMED: {
|
|
54
|
+
readonly message: {
|
|
55
|
+
readonly text: "Malformed credentials";
|
|
56
|
+
readonly code: "core.authentication.credentials_malformed";
|
|
57
|
+
};
|
|
58
|
+
readonly statusCode: 401;
|
|
59
|
+
readonly category: "auth";
|
|
60
|
+
};
|
|
61
|
+
readonly CREDENTIALS_INVALID: {
|
|
62
|
+
readonly message: {
|
|
63
|
+
readonly text: "Invalid username or password";
|
|
64
|
+
readonly code: "core.authentication.credentials_invalid";
|
|
65
|
+
};
|
|
66
|
+
readonly statusCode: 401;
|
|
67
|
+
readonly category: "auth";
|
|
68
|
+
};
|
|
69
|
+
readonly FAILED: {
|
|
70
|
+
readonly message: {
|
|
71
|
+
readonly text: "Authentication failed";
|
|
72
|
+
readonly code: "core.authentication.failed";
|
|
73
|
+
};
|
|
74
|
+
readonly statusCode: 401;
|
|
75
|
+
readonly category: "auth";
|
|
76
|
+
};
|
|
77
|
+
readonly USER_UNRESOLVED: {
|
|
78
|
+
readonly message: {
|
|
79
|
+
readonly text: "Failed to identify authenticated user";
|
|
80
|
+
readonly code: "core.authentication.user_unresolved";
|
|
81
|
+
};
|
|
82
|
+
readonly statusCode: 401;
|
|
83
|
+
readonly category: "auth";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/** Registers these codes with the shared key registry so a consumer gets autocomplete on `messageCode`. */
|
|
87
|
+
declare module '@venizia/ignis-helpers' {
|
|
88
|
+
interface IErrorKeyRegistry extends TRegisterErrors<typeof AuthenticationErrors> {
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGhF,kJAAkJ;AAClJ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8B/B,iIAAiI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C9E,CAAC;AAEtD,2GAA2G;AAC3G,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,iBAAkB,SAAQ,eAAe,CAAC,OAAO,oBAAoB,CAAC;KAAG;CACpF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticationErrors = void 0;
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
|
+
/** Codes a client branches on for a failed authentication. A throw site may override `message` for detail; the code and status come from here. */
|
|
6
|
+
exports.AuthenticationErrors = {
|
|
7
|
+
HEADER_MISSING: {
|
|
8
|
+
message: {
|
|
9
|
+
text: 'Missing authorization header',
|
|
10
|
+
code: 'core.authentication.header_missing',
|
|
11
|
+
},
|
|
12
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
13
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
14
|
+
},
|
|
15
|
+
SCHEME_INVALID: {
|
|
16
|
+
message: {
|
|
17
|
+
text: 'Unsupported authorization scheme',
|
|
18
|
+
code: 'core.authentication.scheme_invalid',
|
|
19
|
+
},
|
|
20
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
21
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
22
|
+
},
|
|
23
|
+
HEADER_MALFORMED: {
|
|
24
|
+
message: {
|
|
25
|
+
text: 'Malformed authorization header',
|
|
26
|
+
code: 'core.authentication.header_malformed',
|
|
27
|
+
},
|
|
28
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
29
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
30
|
+
},
|
|
31
|
+
TOKEN_MISSING: {
|
|
32
|
+
message: { text: 'Missing request token', code: 'core.authentication.token_missing' },
|
|
33
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
34
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
35
|
+
},
|
|
36
|
+
/** Covers expiry, a bad signature and a malformed token alike - the reason rides in `cause`, never in the code a client sees. */
|
|
37
|
+
TOKEN_INVALID: {
|
|
38
|
+
message: { text: 'Invalid or expired token', code: 'core.authentication.token_invalid' },
|
|
39
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
40
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
41
|
+
},
|
|
42
|
+
TOKEN_PAYLOAD_INVALID: {
|
|
43
|
+
message: {
|
|
44
|
+
text: 'Invalid token payload',
|
|
45
|
+
code: 'core.authentication.token_payload_invalid',
|
|
46
|
+
},
|
|
47
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
48
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
49
|
+
},
|
|
50
|
+
CREDENTIALS_MALFORMED: {
|
|
51
|
+
message: {
|
|
52
|
+
text: 'Malformed credentials',
|
|
53
|
+
code: 'core.authentication.credentials_malformed',
|
|
54
|
+
},
|
|
55
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
56
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
57
|
+
},
|
|
58
|
+
CREDENTIALS_INVALID: {
|
|
59
|
+
message: {
|
|
60
|
+
text: 'Invalid username or password',
|
|
61
|
+
code: 'core.authentication.credentials_invalid',
|
|
62
|
+
},
|
|
63
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
64
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
65
|
+
},
|
|
66
|
+
FAILED: {
|
|
67
|
+
message: { text: 'Authentication failed', code: 'core.authentication.failed' },
|
|
68
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
69
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
70
|
+
},
|
|
71
|
+
USER_UNRESOLVED: {
|
|
72
|
+
message: {
|
|
73
|
+
text: 'Failed to identify authenticated user',
|
|
74
|
+
code: 'core.authentication.user_unresolved',
|
|
75
|
+
},
|
|
76
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
77
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/errors.ts"],"names":[],"mappings":";;;AACA,0DAA2D;AAE3D,kJAAkJ;AACrI,QAAA,oBAAoB,GAAG;IAClC,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,8BAA8B;YACpC,IAAI,EAAE,oCAAoC;SAC3C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,kCAAkC;YACxC,IAAI,EAAE,oCAAoC;SAC3C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE;YACP,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE,sCAAsC;SAC7C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KA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IACD,eAAe,EAAE;QACf,OAAO,EAAE;YACP,IAAI,EAAE,uCAAuC;YAC7C,IAAI,EAAE,qCAAqC;SAC5C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;CACkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errors"), exports);
|
|
17
18
|
__exportStar(require("./codecs"), exports);
|
|
18
19
|
__exportStar(require("./constants"), exports);
|
|
19
20
|
__exportStar(require("./keys"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/providers/authentication.provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAa,eAAe,EAAa,MAAM,WAAW,CAAC;AAIvE,qBAAa,sBAAsB,CAAC,QAAQ,SAAS,GAAG,GAAG,GAAG,CAC5D,SAAQ,UACR,YAAW,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;IAM/C,KAAK,IAAI,eAAe,CAAC,QAAQ,CAAC;IAMlC,OAAO,CAAC,4BAA4B;YA+CtB,cAAc;
|
|
1
|
+
{"version":3,"file":"authentication.provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/providers/authentication.provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAa,eAAe,EAAa,MAAM,WAAW,CAAC;AAIvE,qBAAa,sBAAsB,CAAC,QAAQ,SAAS,GAAG,GAAG,GAAG,CAC5D,SAAQ,UACR,YAAW,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;IAM/C,KAAK,IAAI,eAAe,CAAC,QAAQ,CAAC;IAMlC,OAAO,CAAC,4BAA4B;YA+CtB,cAAc;YAsCd,cAAc;IAkC5B,OAAO,CAAC,cAAc;CAQvB"}
|
|
@@ -59,6 +59,8 @@ class AuthenticationProvider extends ignis_helpers_1.BaseHelper {
|
|
|
59
59
|
}
|
|
60
60
|
async executeAnyMode(opts) {
|
|
61
61
|
const { context, strategies, registry, next } = opts;
|
|
62
|
+
// The first strategy's failure is the primary one - kept so the 401 carries WHY, instead of only which strategies were tried.
|
|
63
|
+
let primaryFailure;
|
|
62
64
|
for (const strategyName of strategies) {
|
|
63
65
|
try {
|
|
64
66
|
const strategy = registry.resolveStrategy({ name: strategyName });
|
|
@@ -67,6 +69,7 @@ class AuthenticationProvider extends ignis_helpers_1.BaseHelper {
|
|
|
67
69
|
break;
|
|
68
70
|
}
|
|
69
71
|
catch (error) {
|
|
72
|
+
primaryFailure ??= error;
|
|
70
73
|
this.logger
|
|
71
74
|
.for(this.executeAnyMode.name)
|
|
72
75
|
.debug('Strategy %s failed, trying next... | Error: %s', strategyName, error);
|
|
@@ -75,15 +78,17 @@ class AuthenticationProvider extends ignis_helpers_1.BaseHelper {
|
|
|
75
78
|
const currentUser = context.get(common_1.Authentication.CURRENT_USER);
|
|
76
79
|
if (!currentUser) {
|
|
77
80
|
throw (0, ignis_helpers_1.getError)({
|
|
78
|
-
|
|
81
|
+
error: common_1.AuthenticationErrors.FAILED,
|
|
79
82
|
message: `Authentication failed. Tried strategies: ${strategies.join(', ')}`,
|
|
83
|
+
logLevel: 'warn',
|
|
84
|
+
cause: primaryFailure,
|
|
80
85
|
});
|
|
81
86
|
}
|
|
82
87
|
await next();
|
|
83
88
|
}
|
|
84
89
|
async executeAllMode(opts) {
|
|
85
90
|
const { context, strategies, registry, next } = opts;
|
|
86
|
-
// Use the first strategy's user as the identity source
|
|
91
|
+
// Use the first strategy's user as the identity source - all must succeed but first wins for identity
|
|
87
92
|
let authUser = null;
|
|
88
93
|
for (const strategyName of strategies) {
|
|
89
94
|
const strategy = registry.resolveStrategy({ name: strategyName });
|
|
@@ -97,10 +102,7 @@ class AuthenticationProvider extends ignis_helpers_1.BaseHelper {
|
|
|
97
102
|
this.logger
|
|
98
103
|
.for(this.executeAllMode.name)
|
|
99
104
|
.error('Failed to identify authenticated user | user: %j | userId: %s', authUser, authUser?.userId);
|
|
100
|
-
throw (0, ignis_helpers_1.getError)({
|
|
101
|
-
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
102
|
-
message: 'Failed to identify authenticated user!',
|
|
103
|
-
});
|
|
105
|
+
throw (0, ignis_helpers_1.getError)({ error: common_1.AuthenticationErrors.USER_UNRESOLVED });
|
|
104
106
|
}
|
|
105
107
|
return next();
|
|
106
108
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.provider.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/providers/authentication.provider.ts"],"names":[],"mappings":";;;AACA,0DAAoE;AAGpE,0CAAgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"authentication.provider.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/providers/authentication.provider.ts"],"names":[],"mappings":";;;AACA,0DAAoE;AAGpE,0CAAgD;AAEhD,sCAAsF;AACtF,8CAA+D;AAE/D,MAAa,sBACX,SAAQ,0BAAU;IAGlB;QACE,KAAK,CAAC,EAAE,KAAK,EAAE,sBAAsB,CAAC,IAAI,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,EAAE;YACZ,OAAO,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;QACjD,CAAC,CAAC;IACJ,CAAC;IAEO,4BAA4B,CAAC,IAAgD;QACnF,MAAM,EAAE,UAAU,EAAE,IAAI,GAAG,4BAAmB,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;QAC5D,MAAM,QAAQ,GAAG,2CAA8B,CAAC,WAAW,EAAE,CAAC;QAE9D,OAAO,IAAA,0BAAgB,EAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;YAC9C,MAAM,kB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,GAAG,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;YAClE,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAElD,QAAQ,KAAK,IAAI,CAAC;QACpB,CAAC;QAED,IAAI,QAAQ,EAAE,MAAM,EAAE,CAAC;YACrB,IAAI,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM;iBACR,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;iBAC7B,KAAK,CACJ,+DAA+D,EAC/D,QAAQ,EACR,QAAQ,EAAE,MAAM,CACjB,CAAC;YACJ,MAAM,IAAA,wBAAQ,EAAC,EAAE,KAAK,EAAE,6BAAoB,CAAC,eAAe,EAAE,CAAC,CAAC;QAClE,CAAC;QAED,OAAO,IAAI,EAAE,CAAC;IAChB,CAAC;IAEO,cAAc,CAAC,IAA4C;QACjE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,GAAG,CAAC,uBAAc,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAE/C,IAAI,IAAI,EAAE,MAAM,EAAE,CAAC;YACjB,OAAO,CAAC,GAAG,CAAC,uBAAc,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;CACF;AA7ID,wDA6IC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/components/auth/authenticate/services/basic/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/components/auth/authenticate/services/basic/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAIL,SAAS,EACT,yBAAyB,EAC1B,MAAM,cAAc,CAAC;AAEtB,kFAAkF;AAClF,qBAAa,iBAAiB,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG,CAAE,SAAQ,WAAW;IAKnE,SAAS,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAJjD,SAAS,CAAC,iBAAiB,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;gBAInE,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAcjD,2EAA2E;IAC3E,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IA6DxF,wEAAwE;IAClE,MAAM,CAAC,IAAI,EAAE;QACjB,WAAW,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;QACpD,OAAO,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;KAC9B,GAAG,OAAO,CAAC,SAAS,CAAC;CAgBvB"}
|
|
@@ -36,20 +36,20 @@ let BasicTokenService = BasicTokenService_1 = class BasicTokenService extends ba
|
|
|
36
36
|
const authHeaderValue = context.req.header('Authorization');
|
|
37
37
|
if (!authHeaderValue) {
|
|
38
38
|
throw (0, ignis_helpers_1.getError)({
|
|
39
|
-
|
|
39
|
+
error: common_1.AuthenticationErrors.HEADER_MISSING,
|
|
40
40
|
message: 'Unauthorized! Missing authorization header',
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
if (!authHeaderValue.startsWith(common_1.Authentication.TYPE_BASIC)) {
|
|
44
44
|
throw (0, ignis_helpers_1.getError)({
|
|
45
|
-
|
|
45
|
+
error: common_1.AuthenticationErrors.SCHEME_INVALID,
|
|
46
46
|
message: 'Unauthorized! Invalid authorization schema, expected Basic',
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
const parts = authHeaderValue.split(' ');
|
|
50
50
|
if (parts.length !== 2) {
|
|
51
51
|
throw (0, ignis_helpers_1.getError)({
|
|
52
|
-
|
|
52
|
+
error: common_1.AuthenticationErrors.HEADER_MALFORMED,
|
|
53
53
|
message: 'Unauthorized! Invalid authorization header format',
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -60,7 +60,7 @@ let BasicTokenService = BasicTokenService_1 = class BasicTokenService extends ba
|
|
|
60
60
|
.for(this.extractCredentials.name)
|
|
61
61
|
.debug('Failed to decode credentials | Reason: %s', reason);
|
|
62
62
|
throw (0, ignis_helpers_1.getError)({
|
|
63
|
-
|
|
63
|
+
error: common_1.AuthenticationErrors.CREDENTIALS_MALFORMED,
|
|
64
64
|
message: 'Unauthorized! Invalid base64 credentials format',
|
|
65
65
|
});
|
|
66
66
|
};
|
|
@@ -90,7 +90,7 @@ let BasicTokenService = BasicTokenService_1 = class BasicTokenService extends ba
|
|
|
90
90
|
.for(this.verify.name)
|
|
91
91
|
.debug('Invalid credentials for username: %s', opts.credentials.username);
|
|
92
92
|
throw (0, ignis_helpers_1.getError)({
|
|
93
|
-
|
|
93
|
+
error: common_1.AuthenticationErrors.CREDENTIALS_INVALID,
|
|
94
94
|
message: 'Unauthorized! Invalid username or password',
|
|
95
95
|
});
|
|
96
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/components/auth/authenticate/services/basic/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,yDAAmD;AACnD,+CAAmD;AACnD,0DAAwD;AAExD,
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/components/auth/authenticate/services/basic/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,yDAAmD;AACnD,+CAAmD;AACnD,0DAAwD;AAExD,yCAMsB;AAEtB,kFAAkF;AAClF,IAAa,iBAAiB,yBAA9B,MAAa,iBAAuC,SAAQ,kBAAW;IAGrE,YAEY,OAAqC;QAE/C,KAAK,CAAC,EAAE,KAAK,EAAE,mBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;QAF/B,YAAO,GAAP,OAAO,CAA8B;QAI/C,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC;YAChC,MAAM,IAAA,wBAAQ,EAAC;gBACb,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,mBAAmB;gBACrD,OAAO,EAAE,wDAAwD;aAClE,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IACrD,CAAC;IAED,2EAA2E;IAC3E,kBAAkB,CAAC,OAA4B;QAC7C,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAE5D,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAA,wBAAQ,EAAC;gBACb,KAAK,EAAE,6BAAoB,CAAC,cAAc;gBAC1C,OAAO,EAAE,4CAA4C;aACtD,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,uBAAc,CAAC,UAAU,CAAC,EAAE,CAAC;YAC3D,MAAM,IAAA,wBAAQ,EAAC;gBACb,KAAK,EAAE,6BAAoB,CAAC,cAAc;gBAC1C,OAAO,EAAE,4DAA4D;aACtE,CAAC,CAAC;QACL,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AAC;QAEnD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAChC,CAAC;IAED,wEAAwE;IACxE,KAAK,CAAC,MAAM,CAAC,IAGZ;QACC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEhD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,CAAC,MAAM;iBACR,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;iBACrB,KAAK,CAAC,sCAAsC,EAAE,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAE5E,MAAM,IAAA,wBAAQ,EAAC;gBACb,KAAK,EAAE,6BAAoB,CAAC,mBAAmB;gBAC/C,OAAO,EAAE,4CAA4C;aACtD,CAAC,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AArGY,8CAAiB;4BAAjB,iBAAiB;IAIzB,WAAA,IAAA,kBAAM,EAAC,EAAE,GAAG,EAAE,gCAAuB,CAAC,aAAa,EAAE,CAAC,CAAA;;GAJ9C,iBAAiB,CAqG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract.service.d.ts","sourceRoot":"","sources":["../../../../../../src/components/auth/authenticate/services/bearer/abstract.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,GAAG,EAAkB,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAG7F,gGAAgG;AAChG,8BAAsB,0BAA0B,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG,CAAE,SAAQ,WAAW;IACvF,oDAAoD;IACpD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,wBAQ9B;IAEH,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAQ;IACjC,SAAS,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClD,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAa;IAEnE,mIAAmI;IACnI,SAAS,CAAC,0BAA0B,CAAC,IAAI,EAAE;QACzC,YAAY,CAAC,EAAE,gBAAgB,CAAC;QAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;KACpC,GAAG,IAAI;IAiBR,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;IA8B3E,MAAM,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"abstract.service.d.ts","sourceRoot":"","sources":["../../../../../../src/components/auth/authenticate/services/bearer/abstract.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,E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