@privateaim/server-http-kit 0.8.21 → 0.8.23

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.
Files changed (79) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/index.mjs +548 -0
  3. package/dist/index.mjs.map +1 -0
  4. package/dist/middlewares/error.d.ts.map +1 -1
  5. package/dist/services/authup/middleware.d.ts.map +1 -1
  6. package/dist/services/authup/permission-provider.d.ts +2 -2
  7. package/dist/services/authup/permission-provider.d.ts.map +1 -1
  8. package/dist/swagger/module.d.ts +1 -1
  9. package/dist/swagger/module.d.ts.map +1 -1
  10. package/package.json +36 -26
  11. package/rollup.config.mjs +18 -0
  12. package/src/middlewares/error.ts +6 -1
  13. package/src/services/authup/middleware.ts +15 -9
  14. package/src/services/authup/permission-provider.ts +2 -2
  15. package/src/services/authup/utils.ts +2 -2
  16. package/dist/constants.js +0 -15
  17. package/dist/constants.js.map +0 -1
  18. package/dist/index.js +0 -28
  19. package/dist/index.js.map +0 -1
  20. package/dist/middlewares/basic.js +0 -14
  21. package/dist/middlewares/basic.js.map +0 -1
  22. package/dist/middlewares/cors.js +0 -23
  23. package/dist/middlewares/cors.js.map +0 -1
  24. package/dist/middlewares/decorators.js +0 -39
  25. package/dist/middlewares/decorators.js.map +0 -1
  26. package/dist/middlewares/error.js +0 -91
  27. package/dist/middlewares/error.js.map +0 -1
  28. package/dist/middlewares/force-logged-in.js +0 -18
  29. package/dist/middlewares/force-logged-in.js.map +0 -1
  30. package/dist/middlewares/index.js +0 -33
  31. package/dist/middlewares/index.js.map +0 -1
  32. package/dist/middlewares/module.js +0 -41
  33. package/dist/middlewares/module.js.map +0 -1
  34. package/dist/middlewares/prometheus.js +0 -14
  35. package/dist/middlewares/prometheus.js.map +0 -1
  36. package/dist/middlewares/rate-limit.js +0 -36
  37. package/dist/middlewares/rate-limit.js.map +0 -1
  38. package/dist/middlewares/swagger.js +0 -29
  39. package/dist/middlewares/swagger.js.map +0 -1
  40. package/dist/middlewares/types.js +0 -9
  41. package/dist/middlewares/types.js.map +0 -1
  42. package/dist/request/env.js +0 -21
  43. package/dist/request/env.js.map +0 -1
  44. package/dist/request/identity-realm.js +0 -21
  45. package/dist/request/identity-realm.js.map +0 -1
  46. package/dist/request/identity.js +0 -32
  47. package/dist/request/identity.js.map +0 -1
  48. package/dist/request/index.js +0 -28
  49. package/dist/request/index.js.map +0 -1
  50. package/dist/request/permission/helper.js +0 -23
  51. package/dist/request/permission/helper.js.map +0 -1
  52. package/dist/request/permission/index.js +0 -25
  53. package/dist/request/permission/index.js.map +0 -1
  54. package/dist/request/permission/module.js +0 -47
  55. package/dist/request/permission/module.js.map +0 -1
  56. package/dist/request/types.js +0 -9
  57. package/dist/request/types.js.map +0 -1
  58. package/dist/services/authup/index.js +0 -25
  59. package/dist/services/authup/index.js.map +0 -1
  60. package/dist/services/authup/middleware.js +0 -86
  61. package/dist/services/authup/middleware.js.map +0 -1
  62. package/dist/services/authup/permission-provider.js +0 -20
  63. package/dist/services/authup/permission-provider.js.map +0 -1
  64. package/dist/services/authup/types.js +0 -9
  65. package/dist/services/authup/types.js.map +0 -1
  66. package/dist/services/authup/utils.js +0 -51
  67. package/dist/services/authup/utils.js.map +0 -1
  68. package/dist/services/index.js +0 -24
  69. package/dist/services/index.js.map +0 -1
  70. package/dist/swagger/index.js +0 -24
  71. package/dist/swagger/index.js.map +0 -1
  72. package/dist/swagger/module.js +0 -66
  73. package/dist/swagger/module.js.map +0 -1
  74. package/dist/swagger/types.js +0 -9
  75. package/dist/swagger/types.js.map +0 -1
  76. package/dist/utils/boolable-to-object.js +0 -16
  77. package/dist/utils/boolable-to-object.js.map +0 -1
  78. package/dist/utils/index.js +0 -24
  79. package/dist/utils/index.js.map +0 -1
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2021-2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ForceLoggedInMiddleware = void 0;
10
- const request_1 = require("../request");
11
- class ForceLoggedInMiddleware {
12
- run(request, response, next) {
13
- (0, request_1.useRequestIdentityOrFail)(request);
14
- next();
15
- }
16
- }
17
- exports.ForceLoggedInMiddleware = ForceLoggedInMiddleware;
18
- //# sourceMappingURL=force-logged-in.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"force-logged-in.js","sourceRoot":"","sources":["../../src/middlewares/force-logged-in.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAMH,wCAAsD;AAEtD,MAAa,uBAAuB;IACzB,GAAG,CAAC,OAAgB,EAAE,QAAkB,EAAE,IAAU;QACvD,IAAA,kCAAwB,EAAC,OAAO,CAAC,CAAC;QAElC,IAAI,EAAE,CAAC;IACX,CAAC;CACJ;AAND,0DAMC"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022-2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./basic"), exports);
24
- __exportStar(require("./cors"), exports);
25
- __exportStar(require("./decorators"), exports);
26
- __exportStar(require("./error"), exports);
27
- __exportStar(require("./force-logged-in"), exports);
28
- __exportStar(require("./module"), exports);
29
- __exportStar(require("./prometheus"), exports);
30
- __exportStar(require("./rate-limit"), exports);
31
- __exportStar(require("./swagger"), exports);
32
- __exportStar(require("./types"), exports);
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/middlewares/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,oDAAkC;AAClC,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.mountMiddlewares = mountMiddlewares;
10
- const services_1 = require("../services");
11
- const utils_1 = require("../utils");
12
- const basic_1 = require("./basic");
13
- const cors_1 = require("./cors");
14
- const decorators_1 = require("./decorators");
15
- const prometheus_1 = require("./prometheus");
16
- const rate_limit_1 = require("./rate-limit");
17
- const swagger_1 = require("./swagger");
18
- function mountMiddlewares(router, options = {}) {
19
- if (options.cors) {
20
- (0, cors_1.mountCorsMiddleware)(router);
21
- }
22
- if (options.basic) {
23
- (0, basic_1.mountBasicMiddleware)(router);
24
- }
25
- if (options.authup) {
26
- (0, services_1.mountAuthupMiddleware)(router, options.authup);
27
- }
28
- if (options.prometheus) {
29
- (0, prometheus_1.mountPrometheusMiddleware)(router);
30
- }
31
- if (options.rateLimit) {
32
- (0, rate_limit_1.mountRateLimiterMiddleware)(router);
33
- }
34
- if (options.swagger) {
35
- (0, swagger_1.mountSwaggerMiddleware)(router, (0, utils_1.boolableToObject)(options.swagger));
36
- }
37
- if (options.decorators) {
38
- (0, decorators_1.mountDecoratorsMiddleware)(router, options.decorators);
39
- }
40
- }
41
- //# sourceMappingURL=module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/middlewares/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAaH,4CA+BC;AAzCD,0CAAoD;AACpD,oCAA4C;AAC5C,mCAA+C;AAC/C,iCAA6C;AAC7C,6CAAyD;AACzD,6CAAyD;AACzD,6CAA0D;AAC1D,uCAAmD;AAGnD,SAAgB,gBAAgB,CAC5B,MAAc,EACd,UAAkC,EAAE;IAEpC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,IAAA,0BAAmB,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,IAAA,4BAAoB,EAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACjB,IAAA,gCAAqB,EAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACrB,IAAA,sCAAyB,EAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,IAAA,uCAA0B,EAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QAClB,IAAA,gCAAsB,EAAC,MAAM,EAAE,IAAA,wBAAgB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACrB,IAAA,sCAAyB,EAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1D,CAAC;AACL,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023-2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.mountPrometheusMiddleware = mountPrometheusMiddleware;
10
- const prometheus_1 = require("@routup/prometheus");
11
- function mountPrometheusMiddleware(router) {
12
- router.use((0, prometheus_1.prometheus)());
13
- }
14
- //# sourceMappingURL=prometheus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prometheus.js","sourceRoot":"","sources":["../../src/middlewares/prometheus.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAKH,8DAEC;AALD,mDAAgD;AAGhD,SAAgB,yBAAyB,CAAC,MAAc;IACpD,MAAM,CAAC,GAAG,CAAC,IAAA,uBAAU,GAAE,CAAC,CAAC;AAC7B,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023-2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.mountRateLimiterMiddleware = mountRateLimiterMiddleware;
10
- const core_kit_1 = require("@authup/core-kit");
11
- const rate_limit_1 = require("@routup/rate-limit");
12
- const request_1 = require("../request");
13
- function mountRateLimiterMiddleware(router) {
14
- const options = {
15
- skip(req) {
16
- const identity = (0, request_1.useRequestIdentity)(req);
17
- return identity &&
18
- identity.type === 'robot' &&
19
- identity.realmName === core_kit_1.REALM_MASTER_NAME;
20
- },
21
- max(req) {
22
- const identity = (0, request_1.useRequestIdentity)(req);
23
- if (identity && identity.type === 'user') {
24
- return 60 * 100; // 100 req p. sec
25
- }
26
- if (identity &&
27
- (identity.type === 'robot' || identity.type === 'client')) {
28
- return 60 * 1000; // 1000 req p. sec
29
- }
30
- return 60 * 20; // 20 req p. sec
31
- },
32
- windowMs: 60 * 1000, // 60 sec
33
- };
34
- router.use((0, rate_limit_1.rateLimit)(options));
35
- }
36
- //# sourceMappingURL=rate-limit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rate-limit.js","sourceRoot":"","sources":["../../src/middlewares/rate-limit.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAQH,gEA4BC;AAlCD,+CAAqD;AAErD,mDAA+C;AAE/C,wCAAgD;AAEhD,SAAgB,0BAA0B,CAAC,MAAc;IACrD,MAAM,OAAO,GAAkB;QAC3B,IAAI,CAAC,GAAY;YACb,MAAM,QAAQ,GAAG,IAAA,4BAAkB,EAAC,GAAG,CAAC,CAAC;YAEzC,OAAO,QAAQ;gBACX,QAAQ,CAAC,IAAI,KAAK,OAAO;gBACzB,QAAQ,CAAC,SAAS,KAAK,4BAAiB,CAAC;QACjD,CAAC;QACD,GAAG,CAAC,GAAY;YACZ,MAAM,QAAQ,GAAG,IAAA,4BAAkB,EAAC,GAAG,CAAC,CAAC;YACzC,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBACvC,OAAO,EAAE,GAAG,GAAG,CAAC,CAAC,iBAAiB;YACtC,CAAC;YAED,IACI,QAAQ;gBACR,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,EAC3D,CAAC;gBACC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,kBAAkB;YACxC,CAAC;YAED,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAgB;QACpC,CAAC;QACD,QAAQ,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS;KACjC,CAAC;IAEF,MAAM,CAAC,GAAG,CAAC,IAAA,sBAAS,EAAC,OAAO,CAAC,CAAC,CAAC;AACnC,CAAC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023-2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.mountSwaggerMiddleware = mountSwaggerMiddleware;
13
- const node_path_1 = __importDefault(require("node:path"));
14
- const swagger_1 = require("@routup/swagger");
15
- const locter_1 = require("locter");
16
- const node_process_1 = __importDefault(require("node:process"));
17
- function mountSwaggerMiddleware(router, options = {}) {
18
- let document;
19
- if (options.cwd) {
20
- document = (0, locter_1.loadSync)(node_path_1.default.join(options.cwd, 'swagger.json'));
21
- }
22
- else {
23
- document = (0, locter_1.loadSync)(node_path_1.default.join(node_process_1.default.cwd(), 'writable', 'swagger.json'));
24
- }
25
- router.use('/docs', (0, swagger_1.swaggerUI)(document, {
26
- baseURL: options.baseURL,
27
- }));
28
- }
29
- //# sourceMappingURL=swagger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"swagger.js","sourceRoot":"","sources":["../../src/middlewares/swagger.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;AASH,wDAWC;AAlBD,0DAA6B;AAC7B,6CAA4C;AAC5C,mCAAkC;AAClC,gEAAmC;AAInC,SAAgB,sBAAsB,CAAC,MAAc,EAAE,UAAoC,EAAE;IACzF,IAAI,QAAc,CAAC;IACnB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,QAAQ,GAAG,IAAA,iBAAQ,EAAC,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;IAChE,CAAC;SAAM,CAAC;QACJ,QAAQ,GAAG,IAAA,iBAAQ,EAAC,mBAAI,CAAC,IAAI,CAAC,sBAAO,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAA,mBAAS,EAAC,QAAQ,EAAE;QACpC,OAAO,EAAE,OAAO,CAAC,OAAO;KAC3B,CAAC,CAAC,CAAC;AACR,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/middlewares/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.useRequestEnv = useRequestEnv;
10
- exports.setRequestEnv = setRequestEnv;
11
- const routup_1 = require("routup");
12
- function useRequestEnv(req, key) {
13
- if (typeof key === 'string') {
14
- return (0, routup_1.useRequestEnv)(req, key);
15
- }
16
- return (0, routup_1.useRequestEnv)(req);
17
- }
18
- function setRequestEnv(req, key, value) {
19
- return (0, routup_1.setRequestEnv)(req, key, value);
20
- }
21
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/request/env.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAQH,sCAMC;AAED,sCAMC;AApBD,mCAA0E;AAM1E,SAAgB,aAAa,CAA6B,GAAY,EAAE,GAAO;IAC3E,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAA,sBAAM,EAAC,GAAG,EAAE,GAAG,CAAkB,CAAC;IAC7C,CAAC;IAED,OAAO,IAAA,sBAAM,EAAC,GAAG,CAAC,CAAC;AACvB,CAAC;AAED,SAAgB,aAAa,CACzB,GAAY,EACZ,GAAM,EACN,KAAoB;IAEpB,OAAO,IAAA,sBAAM,EAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AACnC,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.useRequestIdentityRealm = useRequestIdentityRealm;
10
- const identity_1 = require("./identity");
11
- function useRequestIdentityRealm(req) {
12
- const identity = (0, identity_1.useRequestIdentity)(req);
13
- if (!identity) {
14
- return undefined;
15
- }
16
- return {
17
- id: identity.realmId,
18
- name: identity.realmName,
19
- };
20
- }
21
- //# sourceMappingURL=identity-realm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-realm.js","sourceRoot":"","sources":["../../src/request/identity-realm.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAUH,0DAUC;AAjBD,yCAAgD;AAOhD,SAAgB,uBAAuB,CAAC,GAAY;IAChD,MAAM,QAAQ,GAAG,IAAA,6BAAkB,EAAC,GAAG,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO;QACH,EAAE,EAAE,QAAQ,CAAC,OAAO;QACpB,IAAI,EAAE,QAAQ,CAAC,SAAS;KAC3B,CAAC;AACN,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.useRequestIdentity = useRequestIdentity;
10
- exports.setRequestIdentity = setRequestIdentity;
11
- exports.useRequestIdentityOrFail = useRequestIdentityOrFail;
12
- exports.isRequestIdentityMasterRealmMember = isRequestIdentityMasterRealmMember;
13
- const core_kit_1 = require("@authup/core-kit");
14
- const http_1 = require("@ebec/http");
15
- const env_1 = require("./env");
16
- function useRequestIdentity(req) {
17
- return (0, env_1.useRequestEnv)(req, 'identity');
18
- }
19
- function setRequestIdentity(req, identity) {
20
- (0, env_1.setRequestEnv)(req, 'identity', identity);
21
- }
22
- function useRequestIdentityOrFail(req) {
23
- const identity = useRequestIdentity(req);
24
- if (!identity) {
25
- throw new http_1.UnauthorizedError();
26
- }
27
- return identity;
28
- }
29
- function isRequestIdentityMasterRealmMember(input) {
30
- return input.realmName === core_kit_1.REALM_MASTER_NAME;
31
- }
32
- //# sourceMappingURL=identity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/request/identity.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAQH,gDAEC;AAED,gDAEC;AAED,4DAOC;AAED,gFAEC;AAzBD,+CAAqD;AACrD,qCAA+C;AAG/C,+BAAqD;AAErD,SAAgB,kBAAkB,CAAC,GAAY;IAC3C,OAAO,IAAA,mBAAa,EAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,kBAAkB,CAAC,GAAY,EAAE,QAAyB;IACtE,IAAA,mBAAa,EAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,wBAAwB,CAAC,GAAY;IACjD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,wBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAgB,kCAAkC,CAAC,KAAsB;IACrE,OAAO,KAAK,CAAC,SAAS,KAAK,4BAAiB,CAAC;AACjD,CAAC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./permission"), exports);
24
- __exportStar(require("./env"), exports);
25
- __exportStar(require("./identity"), exports);
26
- __exportStar(require("./identity-realm"), exports);
27
- __exportStar(require("./types"), exports);
28
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/request/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,wCAAsB;AACtB,6CAA2B;AAC3B,mDAAiC;AACjC,0CAAwB"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.setRequestPermissionChecker = setRequestPermissionChecker;
10
- exports.useRequestPermissionChecker = useRequestPermissionChecker;
11
- const http_1 = require("@ebec/http");
12
- const env_1 = require("../env");
13
- function setRequestPermissionChecker(req, checker) {
14
- (0, env_1.setRequestEnv)(req, 'permissionChecker', checker);
15
- }
16
- function useRequestPermissionChecker(req) {
17
- const checker = (0, env_1.useRequestEnv)(req, 'permissionChecker');
18
- if (!checker) {
19
- throw new http_1.BadRequestError('The request permission checker is not initialized.');
20
- }
21
- return checker;
22
- }
23
- //# sourceMappingURL=helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/request/permission/helper.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAOH,kEAEC;AAED,kEAOC;AAfD,qCAA6C;AAC7C,gCAAsD;AAGtD,SAAgB,2BAA2B,CAAC,GAAY,EAAE,OAAiC;IACvF,IAAA,mBAAa,EAAC,GAAG,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,2BAA2B,CAAC,GAAY;IACpD,MAAM,OAAO,GAAG,IAAA,mBAAa,EAAC,GAAG,EAAE,mBAAmB,CAAC,CAAC;IACxD,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,sBAAe,CAAC,oDAAoD,CAAC,CAAC;IACpF,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./helper"), exports);
24
- __exportStar(require("./module"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/request/permission/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,2CAAyB"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.RequestPermissionChecker = void 0;
10
- const core_kit_1 = require("@authup/core-kit");
11
- const env_1 = require("../env");
12
- const identity_1 = require("../identity");
13
- class RequestPermissionChecker {
14
- req;
15
- checker;
16
- constructor(req, checker) {
17
- this.req = req;
18
- this.checker = checker;
19
- }
20
- // --------------------------------------------------------------
21
- async check(ctx) {
22
- return this.checker.check(this.extendCheckContext(ctx));
23
- }
24
- async preCheck(ctx) {
25
- return this.checker.preCheck(this.extendCheckContext(ctx));
26
- }
27
- // --------------------------------------------------------------
28
- async preCheckOneOf(ctx) {
29
- return this.checker.preCheckOneOf(this.extendCheckContext(ctx));
30
- }
31
- async checkOneOf(ctx) {
32
- return this.checker.checkOneOf(this.extendCheckContext(ctx));
33
- }
34
- // --------------------------------------------------------------
35
- extendCheckContext(ctx) {
36
- const scopes = (0, env_1.useRequestEnv)(this.req, 'scopes') || [];
37
- if (scopes.indexOf(core_kit_1.ScopeName.GLOBAL) !== -1) {
38
- ctx.input = {
39
- ...ctx.input || {},
40
- identity: (0, identity_1.useRequestIdentity)(this.req),
41
- };
42
- }
43
- return ctx;
44
- }
45
- }
46
- exports.RequestPermissionChecker = RequestPermissionChecker;
47
- //# sourceMappingURL=module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/request/permission/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+CAA6C;AAM7C,gCAAuC;AACvC,0CAAiD;AAEjD,MAAa,wBAAwB;IACvB,GAAG,CAAU;IAEb,OAAO,CAAoB;IAErC,YAAY,GAAY,EAAE,OAA0B;QAChD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,iEAAiE;IAEjE,KAAK,CAAC,KAAK,CAAC,GAAkC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,GAAkC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,iEAAiE;IAEjE,KAAK,CAAC,aAAa,CAAC,GAAkC;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,GAAkC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,iEAAiE;IAEvD,kBAAkB,CAAC,GAAkC;QAC3D,MAAM,MAAM,GAAG,IAAA,mBAAa,EAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvD,IAAI,MAAM,CAAC,OAAO,CAAC,oBAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAC1C,GAAG,CAAC,KAAK,GAAG;gBACR,GAAG,GAAG,CAAC,KAAK,IAAI,EAAE;gBAClB,QAAQ,EAAE,IAAA,6BAAkB,EAAC,IAAI,CAAC,GAAG,CAAC;aACzC,CAAC;QACN,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AA3CD,4DA2CC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/request/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./middleware"), exports);
24
- __exportStar(require("./types"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/authup/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,0CAAwB"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.mountAuthupMiddleware = mountAuthupMiddleware;
10
- const server_adapter_http_1 = require("@authup/server-adapter-http");
11
- const cookie_1 = require("@routup/basic/cookie");
12
- const hapic_1 = require("hapic");
13
- const routup_1 = require("routup");
14
- const utils_1 = require("./utils");
15
- function mountAuthupMiddleware(router, options) {
16
- if (!options.client) {
17
- const data = (0, utils_1.createFakeTokenVerificationData)();
18
- router.use((0, routup_1.coreHandler)((req, res, next) => {
19
- (0, utils_1.applyTokenVerificationData)(req, data, options.fakeAbilities);
20
- next();
21
- }));
22
- return;
23
- }
24
- router.use((0, routup_1.coreHandler)(async (req, res, next) => {
25
- const headerRaw = (0, routup_1.getRequestHeader)(req, 'authorization');
26
- if (typeof headerRaw !== 'string') {
27
- next();
28
- }
29
- const cacheKey = `authorization-header:${headerRaw}`;
30
- if (options.redisClient) {
31
- const data = await options.redisClient.get(cacheKey);
32
- if (data) {
33
- req.headers.authorization = `Bearer ${data}`;
34
- next();
35
- return;
36
- }
37
- }
38
- const header = (0, hapic_1.parseAuthorizationHeader)(headerRaw);
39
- if (header.type === 'Basic') {
40
- const token = await options.client.token.createWithPassword({
41
- username: header.username,
42
- password: header.password,
43
- });
44
- req.headers.authorization = `Bearer ${token.access_token}`;
45
- if (options.redisClient) {
46
- await options.redisClient.setex(cacheKey, token.expires_in, token.access_token);
47
- }
48
- }
49
- next();
50
- }));
51
- let tokenCreator;
52
- if (options.vaultClient) {
53
- tokenCreator = {
54
- type: 'robotInVault',
55
- name: 'system',
56
- vault: options.vaultClient,
57
- baseURL: options.client.getBaseURL(),
58
- };
59
- }
60
- else {
61
- tokenCreator = {
62
- type: 'user',
63
- name: 'admin',
64
- password: 'start123',
65
- baseURL: options.client.getBaseURL(),
66
- };
67
- }
68
- let tokenCache;
69
- if (options.redisClient) {
70
- tokenCache = {
71
- type: 'redis',
72
- client: options.redisClient,
73
- };
74
- }
75
- const middleware = (0, server_adapter_http_1.createMiddleware)({
76
- tokenByCookie: (req, cookieName) => (0, cookie_1.useRequestCookie)(req, cookieName),
77
- tokenVerifier: {
78
- baseURL: options.client.getBaseURL(),
79
- creator: tokenCreator,
80
- cache: tokenCache,
81
- },
82
- tokenVerifierHandler: (req, data) => (0, utils_1.applyTokenVerificationData)(req, data, options.fakeAbilities),
83
- });
84
- router.use((0, routup_1.coreHandler)((req, res, next) => middleware(req, res, next)));
85
- }
86
- //# sourceMappingURL=middleware.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/services/authup/middleware.ts"],"names":[],"mappings":"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"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2025.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.FakePermissionProvider = void 0;
10
- class FakePermissionProvider {
11
- async get(criteria) {
12
- return {
13
- name: criteria.name,
14
- realmId: criteria.realmId,
15
- policy: null,
16
- };
17
- }
18
- }
19
- exports.FakePermissionProvider = FakePermissionProvider;
20
- //# sourceMappingURL=permission-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permission-provider.js","sourceRoot":"","sources":["../../../src/services/authup/permission-provider.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,MAAa,sBAAsB;IAC/B,KAAK,CAAC,GAAG,CAAC,QAA8B;QACpC,OAAO;YACH,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,MAAM,EAAE,IAAI;SACf,CAAC;IACN,CAAC;CACJ;AARD,wDAQC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2024.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/authup/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}