@celljs/security 3.0.0 → 3.1.1
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/lib/browser/index.js +2 -15
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/user/index.js +3 -16
- package/lib/browser/user/index.js.map +1 -1
- package/lib/browser/user/user-manager.js +24 -32
- package/lib/browser/user/user-manager.js.map +1 -1
- package/lib/common/index.js +2 -15
- package/lib/common/index.js.map +1 -1
- package/lib/node/access/access-decision-manager.js +4 -15
- package/lib/node/access/access-decision-manager.js.map +1 -1
- package/lib/node/access/access-decision-voter.js +7 -15
- package/lib/node/access/access-decision-voter.js.map +1 -1
- package/lib/node/access/action-name-resolver.js +2 -7
- package/lib/node/access/action-name-resolver.js.map +1 -1
- package/lib/node/access/index.js +12 -25
- package/lib/node/access/index.js.map +1 -1
- package/lib/node/access/jexl-engine-provider.js +2 -7
- package/lib/node/access/jexl-engine-provider.js.map +1 -1
- package/lib/node/access/method-advice.js +12 -20
- package/lib/node/access/method-advice.js.map +1 -1
- package/lib/node/access/policy-provider.js +9 -17
- package/lib/node/access/policy-provider.js.map +1 -1
- package/lib/node/access/policy-resolver.js +5 -13
- package/lib/node/access/policy-resolver.js.map +1 -1
- package/lib/node/access/resource-name-resolver.js +4 -12
- package/lib/node/access/resource-name-resolver.js.map +1 -1
- package/lib/node/access/security-metadata-source.js +10 -15
- package/lib/node/access/security-metadata-source.js.map +1 -1
- package/lib/node/annotation/authorize.js +1 -1
- package/lib/node/annotation/authorize.js.map +1 -1
- package/lib/node/annotation/index.js +8 -21
- package/lib/node/annotation/index.js.map +1 -1
- package/lib/node/authentication/authentication-manager.js +10 -18
- package/lib/node/authentication/authentication-manager.js.map +1 -1
- package/lib/node/authentication/authentication-middleware.js +4 -12
- package/lib/node/authentication/authentication-middleware.js.map +1 -1
- package/lib/node/authentication/authentication-provider.js +33 -41
- package/lib/node/authentication/authentication-provider.js.map +1 -1
- package/lib/node/authentication/authentication-success-handler.js +16 -24
- package/lib/node/authentication/authentication-success-handler.js.map +1 -1
- package/lib/node/authentication/index.js +6 -19
- package/lib/node/authentication/index.js.map +1 -1
- package/lib/node/cache/cache-protocol.d.ts +1 -1
- package/lib/node/cache/cache-protocol.d.ts.map +1 -1
- package/lib/node/cache/cache-protocol.js +1 -1
- package/lib/node/cache/cache-protocol.js.map +1 -1
- package/lib/node/cache/index.js +3 -16
- package/lib/node/cache/index.js.map +1 -1
- package/lib/node/cache/request-cache.js +7 -15
- package/lib/node/cache/request-cache.js.map +1 -1
- package/lib/node/context/index.js +5 -18
- package/lib/node/context/index.js.map +1 -1
- package/lib/node/context/security-context-middleware.js +6 -14
- package/lib/node/context/security-context-middleware.js.map +1 -1
- package/lib/node/context/security-context-store.js +6 -14
- package/lib/node/context/security-context-store.js.map +1 -1
- package/lib/node/context/security-context-strategy.js +2 -7
- package/lib/node/context/security-context-strategy.js.map +1 -1
- package/lib/node/crypto/index.js +3 -16
- package/lib/node/crypto/index.js.map +1 -1
- package/lib/node/crypto/keygen/base64-string-key-generator.js +4 -12
- package/lib/node/crypto/keygen/base64-string-key-generator.js.map +1 -1
- package/lib/node/crypto/keygen/index.js +3 -16
- package/lib/node/crypto/keygen/index.js.map +1 -1
- package/lib/node/crypto/password/index.js +3 -16
- package/lib/node/crypto/password/index.js.map +1 -1
- package/lib/node/crypto/password/password-encoder.js +4 -12
- package/lib/node/crypto/password/password-encoder.js.map +1 -1
- package/lib/node/error/error-handler.js +13 -21
- package/lib/node/error/error-handler.js.map +1 -1
- package/lib/node/error/index.js +4 -17
- package/lib/node/error/index.js.map +1 -1
- package/lib/node/index.js +11 -24
- package/lib/node/index.js.map +1 -1
- package/lib/node/logout/index.js +5 -18
- package/lib/node/logout/index.js.map +1 -1
- package/lib/node/logout/logout-handler.js +2 -7
- package/lib/node/logout/logout-handler.js.map +1 -1
- package/lib/node/logout/logout-middleware.js +14 -22
- package/lib/node/logout/logout-middleware.js.map +1 -1
- package/lib/node/logout/logout-success-handler-provider.js +4 -15
- package/lib/node/logout/logout-success-handler-provider.js.map +1 -1
- package/lib/node/logout/logout-success-handler.js +6 -14
- package/lib/node/logout/logout-success-handler.js.map +1 -1
- package/lib/node/user/index.js +6 -19
- package/lib/node/user/index.js.map +1 -1
- package/lib/node/user/user-checker.js +4 -12
- package/lib/node/user/user-checker.js.map +1 -1
- package/lib/node/user/user-mapper.js +4 -12
- package/lib/node/user/user-mapper.js.map +1 -1
- package/lib/node/user/user-middleware.js +8 -16
- package/lib/node/user/user-middleware.js.map +1 -1
- package/lib/node/user/user-service.js +4 -12
- package/lib/node/user/user-service.js.map +1 -1
- package/package.json +8 -7
- package/src/node/cache/cache-protocol.ts +1 -1
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.HttpSessionRequestCache = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const cache_protocol_1 = require("./cache-protocol");
|
|
14
6
|
const node_1 = require("@celljs/web/lib/node");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -22,7 +14,7 @@ let HttpSessionRequestCache = class HttpSessionRequestCache {
|
|
|
22
14
|
node_1.Context.setAttr(cache_protocol_1.SAVED_REQUEST, savedRequest || {
|
|
23
15
|
redirectUrl: await this.pathResolver.resolve(this.endpoint, request.path, qs.stringify(request.query)),
|
|
24
16
|
method: request.method.toUpperCase(),
|
|
25
|
-
query:
|
|
17
|
+
query: { ...request.query }
|
|
26
18
|
}, node_1.AttributeScope.Session);
|
|
27
19
|
}
|
|
28
20
|
}
|
|
@@ -37,15 +29,15 @@ let HttpSessionRequestCache = class HttpSessionRequestCache {
|
|
|
37
29
|
}
|
|
38
30
|
}
|
|
39
31
|
};
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, core_1.Value)(web_1.ENDPOINT),
|
|
42
|
-
__metadata("design:type", String)
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
43
35
|
], HttpSessionRequestCache.prototype, "endpoint", void 0);
|
|
44
|
-
__decorate([
|
|
36
|
+
tslib_1.__decorate([
|
|
45
37
|
(0, core_1.Autowired)(web_1.PathResolver),
|
|
46
|
-
__metadata("design:type", Object)
|
|
38
|
+
tslib_1.__metadata("design:type", Object)
|
|
47
39
|
], HttpSessionRequestCache.prototype, "pathResolver", void 0);
|
|
48
|
-
HttpSessionRequestCache = __decorate([
|
|
40
|
+
HttpSessionRequestCache = tslib_1.__decorate([
|
|
49
41
|
(0, core_1.Component)(cache_protocol_1.RequestCache)
|
|
50
42
|
], HttpSessionRequestCache);
|
|
51
43
|
exports.HttpSessionRequestCache = HttpSessionRequestCache;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-cache.js","sourceRoot":"","sources":["../../../src/node/cache/request-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-cache.js","sourceRoot":"","sources":["../../../src/node/cache/request-cache.ts"],"names":[],"mappings":";;;;AAAA,qDAA6E;AAC7E,+CAA+D;AAC/D,uCAA2D;AAC3D,qCAAqD;AACrD,yBAAyB;AAGlB,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAQhC,KAAK,CAAC,IAAI,CAAC,YAA2B;QAClC,IAAI,cAAO,CAAC,UAAU,EAAE,EAAE;YACtB,MAAM,OAAO,GAAG,cAAO,CAAC,UAAU,EAAE,CAAC;YACrC,cAAO,CAAC,OAAO,CAAC,8BAAa,EAAE,YAAY,IAAI;gBAC3C,WAAW,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;gBACtG,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE;gBACpC,KAAK,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE;aAC9B,EAAE,qBAAc,CAAC,OAAO,CAAC,CAAC;SAC9B;IACL,CAAC;IACD,KAAK,CAAC,GAAG;QACL,IAAI,cAAO,CAAC,UAAU,EAAE,EAAE;YACtB,OAAO,cAAO,CAAC,OAAO,CAAe,8BAAa,EAAE,qBAAc,CAAC,OAAO,CAAC,CAAC;SAC/E;IACL,CAAC;IAED,KAAK,CAAC,MAAM;QACR,IAAI,cAAO,CAAC,UAAU,EAAE,EAAE;YACtB,cAAO,CAAC,OAAO,CAAC,8BAAa,EAAE,SAAS,EAAE,qBAAc,CAAC,OAAO,CAAC,CAAC;SACrE;IACL,CAAC;CAEJ,CAAA;AA5BG;IAAC,IAAA,YAAK,EAAC,cAAQ,CAAC;;yDACoB;AAEpC;IAAC,IAAA,gBAAS,EAAC,kBAAY,CAAC;;6DACsB;AANrC,uBAAuB;IADnC,IAAA,gBAAS,EAAC,6BAAY,CAAC;GACX,uBAAuB,CA8BnC;AA9BY,0DAAuB"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./security-context-
|
|
20
|
-
__exportStar(require("./security-context-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./context-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./security-context-middleware"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./security-context-store"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./security-context-strategy"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/context/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/context/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,wEAA8C;AAC9C,mEAAyC;AACzC,sEAA4C"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.SecurityContextMiddleWare = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const node_1 = require("@celljs/web/lib/node");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const context_protocol_1 = require("./context-protocol");
|
|
@@ -29,15 +21,15 @@ let SecurityContextMiddleWare = class SecurityContextMiddleWare {
|
|
|
29
21
|
}
|
|
30
22
|
}
|
|
31
23
|
};
|
|
32
|
-
__decorate([
|
|
24
|
+
tslib_1.__decorate([
|
|
33
25
|
(0, core_1.Value)('cell.security'),
|
|
34
|
-
__metadata("design:type", Object)
|
|
26
|
+
tslib_1.__metadata("design:type", Object)
|
|
35
27
|
], SecurityContextMiddleWare.prototype, "options", void 0);
|
|
36
|
-
__decorate([
|
|
28
|
+
tslib_1.__decorate([
|
|
37
29
|
(0, core_1.Autowired)(context_protocol_1.SecurityContextStore),
|
|
38
|
-
__metadata("design:type", Object)
|
|
30
|
+
tslib_1.__metadata("design:type", Object)
|
|
39
31
|
], SecurityContextMiddleWare.prototype, "securityContextStore", void 0);
|
|
40
|
-
SecurityContextMiddleWare = __decorate([
|
|
32
|
+
SecurityContextMiddleWare = tslib_1.__decorate([
|
|
41
33
|
(0, core_1.Component)(node_1.Middleware)
|
|
42
34
|
], SecurityContextMiddleWare);
|
|
43
35
|
exports.SecurityContextMiddleWare = SecurityContextMiddleWare;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-context-middleware.js","sourceRoot":"","sources":["../../../src/node/context/security-context-middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"security-context-middleware.js","sourceRoot":"","sources":["../../../src/node/context/security-context-middleware.ts"],"names":[],"mappings":";;;;AAAA,+CAA2D;AAC3D,uCAA2D;AAC3D,yDAAiH;AAG1G,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QAoBM,aAAQ,GAAW,uDAAoC,CAAC;IAErE,CAAC;IAdG,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,IAAyB;QAEhD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC;QACvD,IAAI;YACA,kCAAe,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACpC,cAAO,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC/C,MAAM,IAAI,EAAE,CAAC;SAChB;gBAAS;YACN,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,kCAAe,CAAC,UAAU,EAAE,CAAC,CAAC;SACtE;IACL,CAAC;CAIJ,CAAA;AApBG;IAAC,IAAA,YAAK,EAAC,eAAe,CAAC;;0DACS;AAEhC;IAAC,IAAA,gBAAS,EAAC,uCAAoB,CAAC;;uEAC8B;AANrD,yBAAyB;IADrC,IAAA,gBAAS,EAAC,iBAAU,CAAC;GACT,yBAAyB,CAsBrC;AAtBY,8DAAyB"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.SessionSecurityContextStore = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const context_protocol_1 = require("./context-protocol");
|
|
15
7
|
const node_1 = require("@celljs/web/lib/node");
|
|
@@ -25,15 +17,15 @@ let SessionSecurityContextStore = class SessionSecurityContextStore {
|
|
|
25
17
|
node_1.Context.getSession()[this.options.contextKey] = context;
|
|
26
18
|
}
|
|
27
19
|
};
|
|
28
|
-
__decorate([
|
|
20
|
+
tslib_1.__decorate([
|
|
29
21
|
(0, core_1.Value)('cell.security'),
|
|
30
|
-
__metadata("design:type", Object)
|
|
22
|
+
tslib_1.__metadata("design:type", Object)
|
|
31
23
|
], SessionSecurityContextStore.prototype, "options", void 0);
|
|
32
|
-
__decorate([
|
|
24
|
+
tslib_1.__decorate([
|
|
33
25
|
(0, core_1.Autowired)(context_protocol_1.SecurityContextStrategy),
|
|
34
|
-
__metadata("design:type", Object)
|
|
26
|
+
tslib_1.__metadata("design:type", Object)
|
|
35
27
|
], SessionSecurityContextStore.prototype, "securityContextStrategy", void 0);
|
|
36
|
-
SessionSecurityContextStore = __decorate([
|
|
28
|
+
SessionSecurityContextStore = tslib_1.__decorate([
|
|
37
29
|
(0, core_1.Component)(context_protocol_1.SecurityContextStore)
|
|
38
30
|
], SessionSecurityContextStore);
|
|
39
31
|
exports.SessionSecurityContextStore = SessionSecurityContextStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-context-store.js","sourceRoot":"","sources":["../../../src/node/context/security-context-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"security-context-store.js","sourceRoot":"","sources":["../../../src/node/context/security-context-store.ts"],"names":[],"mappings":";;;;AAAA,uCAA2D;AAC3D,yDAAoG;AACpG,+CAA+C;AAGxC,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAQpC,KAAK,CAAC,IAAI;QACN,MAAM,OAAO,GAAG,cAAO,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,CAAC,OAAO,EAAE;YACV,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC;SAChD;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAAwB;QAC/B,cAAO,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;IAC5D,CAAC;CAEJ,CAAA;AAjBG;IAAC,IAAA,YAAK,EAAC,eAAe,CAAC;;4DACS;AAEhC;IAAC,IAAA,gBAAS,EAAC,0CAAuB,CAAC;;4EACiC;AAN3D,2BAA2B;IADvC,IAAA,gBAAS,EAAC,uCAAoB,CAAC;GACnB,2BAA2B,CAmBvC;AAnBY,kEAA2B"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.SessionSecurityContextStrategy = exports.SecurityContextImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const core_1 = require("@celljs/core");
|
|
11
6
|
const context_protocol_1 = require("./context-protocol");
|
|
12
7
|
class SecurityContextImpl {
|
|
@@ -25,7 +20,7 @@ let SessionSecurityContextStrategy = class SessionSecurityContextStrategy {
|
|
|
25
20
|
return Promise.resolve(securityContext);
|
|
26
21
|
}
|
|
27
22
|
};
|
|
28
|
-
SessionSecurityContextStrategy = __decorate([
|
|
23
|
+
SessionSecurityContextStrategy = tslib_1.__decorate([
|
|
29
24
|
(0, core_1.Component)(context_protocol_1.SecurityContextStrategy)
|
|
30
25
|
], SessionSecurityContextStrategy);
|
|
31
26
|
exports.SessionSecurityContextStrategy = SessionSecurityContextStrategy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-context-strategy.js","sourceRoot":"","sources":["../../../src/node/context/security-context-strategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"security-context-strategy.js","sourceRoot":"","sources":["../../../src/node/context/security-context-strategy.ts"],"names":[],"mappings":";;;;AAAA,uCAAyC;AACzC,yDAA8E;AAG9E,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAGM,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAEvC,MAAM;QACF,MAAM,eAAe,GAAG,IAAI,mBAAmB,EAAE,CAAC;QAClD,eAAe,CAAC,cAAc,GAAG;YAC7B,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,eAAe;YAC1B,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,KAAK;SACvB,CAAC;QACF,OAAO,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C,CAAC;CAEJ,CAAA;AAdY,8BAA8B;IAD1C,IAAA,gBAAS,EAAC,0CAAuB,CAAC;GACtB,8BAA8B,CAc1C;AAdY,wEAA8B"}
|
package/lib/node/crypto/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./keygen"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./password"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/crypto/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/crypto/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,qDAA2B"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Base64StringKeyGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const keygen_protocol_1 = require("./keygen-protocol");
|
|
14
6
|
const crypto_js_1 = require("crypto-js");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -19,11 +11,11 @@ let Base64StringKeyGenerator = class Base64StringKeyGenerator {
|
|
|
19
11
|
return crypto_js_1.enc.Base64.stringify(key);
|
|
20
12
|
}
|
|
21
13
|
};
|
|
22
|
-
__decorate([
|
|
14
|
+
tslib_1.__decorate([
|
|
23
15
|
(0, core_1.Value)('cell.security.base64StringKeyLength'),
|
|
24
|
-
__metadata("design:type", Number)
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
25
17
|
], Base64StringKeyGenerator.prototype, "keyLength", void 0);
|
|
26
|
-
Base64StringKeyGenerator = __decorate([
|
|
18
|
+
Base64StringKeyGenerator = tslib_1.__decorate([
|
|
27
19
|
(0, core_1.Component)(keygen_protocol_1.StringKeyGenerator)
|
|
28
20
|
], Base64StringKeyGenerator);
|
|
29
21
|
exports.Base64StringKeyGenerator = Base64StringKeyGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64-string-key-generator.js","sourceRoot":"","sources":["../../../../src/node/crypto/keygen/base64-string-key-generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base64-string-key-generator.js","sourceRoot":"","sources":["../../../../src/node/crypto/keygen/base64-string-key-generator.ts"],"names":[],"mappings":";;;;AAAA,uDAAuD;AACvD,yCAAqC;AACrC,uCAAgD;AAGzC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAKjC,KAAK,CAAC,WAAW,CAAC,SAAkB;QAChC,MAAM,GAAG,GAAG,eAAG,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;QAC9D,OAAO,eAAG,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ,CAAA;AAPG;IAAC,IAAA,YAAK,EAAC,qCAAqC,CAAC;;2DACR;AAH5B,wBAAwB;IADpC,IAAA,gBAAS,EAAC,oCAAkB,CAAC;GACjB,wBAAwB,CASpC;AATY,4DAAwB"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./keygen-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./base64-string-key-generator"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/node/crypto/keygen/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/node/crypto/keygen/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,wEAA8C"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./password-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./password-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./password-encoder"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/node/crypto/password/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/node/crypto/password/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,6DAAmC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Pbkdf2PasswordEncoder = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const password_protocol_1 = require("./password-protocol");
|
|
14
6
|
const crypto_js_1 = require("crypto-js");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -40,11 +32,11 @@ let Pbkdf2PasswordEncoder = class Pbkdf2PasswordEncoder {
|
|
|
40
32
|
return encoded;
|
|
41
33
|
}
|
|
42
34
|
};
|
|
43
|
-
__decorate([
|
|
35
|
+
tslib_1.__decorate([
|
|
44
36
|
(0, core_1.Value)('cell.security.passwordEncoder'),
|
|
45
|
-
__metadata("design:type", Object)
|
|
37
|
+
tslib_1.__metadata("design:type", Object)
|
|
46
38
|
], Pbkdf2PasswordEncoder.prototype, "options", void 0);
|
|
47
|
-
Pbkdf2PasswordEncoder = __decorate([
|
|
39
|
+
Pbkdf2PasswordEncoder = tslib_1.__decorate([
|
|
48
40
|
(0, core_1.Component)(password_protocol_1.PasswordEncoder)
|
|
49
41
|
], Pbkdf2PasswordEncoder);
|
|
50
42
|
exports.Pbkdf2PasswordEncoder = Pbkdf2PasswordEncoder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-encoder.js","sourceRoot":"","sources":["../../../../src/node/crypto/password/password-encoder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-encoder.js","sourceRoot":"","sources":["../../../../src/node/crypto/password/password-encoder.ts"],"names":[],"mappings":";;;;AAAA,2DAAsD;AACtD,yCAA4C;AAC5C,uCAAgD;AAGzC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAK9B,KAAK,CAAC,MAAM,CAAC,WAAmB;QAC5B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5C,MAAM,IAAI,GAAG,eAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC5D,IAAI,kBAAkB,EAAE;YACpB,OAAO,eAAG,CAAC,MAAM,CAAC,SAAS,CAAC,eAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SACxD;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAES,QAAQ,CAAC,WAAmB,EAAE,IAAY;QAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAChC,OAAO,IAAI,GAAG,IAAA,kBAAM,EAAC,WAAW,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,WAAmB,EAAE,eAAuB;QACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAChD,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACvC,OAAO,QAAQ,KAAK,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAES,QAAQ,CAAC,OAAe;QAC9B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5C,IAAI,kBAAkB,EAAE;YACpB,OAAO,eAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,eAAG,CAAC,IAAI,CAAC,CAAC;SACvD;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAA;AA/BG;IAAC,IAAA,YAAK,EAAC,+BAA+B,CAAC;;sDACP;AAHvB,qBAAqB;IADjC,IAAA,gBAAS,EAAC,mCAAe,CAAC;GACd,qBAAqB,CAiCjC;AAjCY,sDAAqB"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.AccessDeniedErrorHandler = exports.AuthenticationErrorHandler = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const error_protocol_1 = require("./error-protocol");
|
|
14
6
|
const error_1 = require("./error");
|
|
15
7
|
const node_1 = require("@celljs/web/lib/node");
|
|
@@ -38,27 +30,27 @@ let AuthenticationErrorHandler = class AuthenticationErrorHandler {
|
|
|
38
30
|
}
|
|
39
31
|
}
|
|
40
32
|
};
|
|
41
|
-
__decorate([
|
|
33
|
+
tslib_1.__decorate([
|
|
42
34
|
(0, core_1.Value)('cell.security.basic.realm'),
|
|
43
|
-
__metadata("design:type", String)
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
44
36
|
], AuthenticationErrorHandler.prototype, "realm", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, core_1.Value)('cell.security.basic.enabled'),
|
|
47
|
-
__metadata("design:type", Boolean)
|
|
39
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
48
40
|
], AuthenticationErrorHandler.prototype, "baseEnabled", void 0);
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, core_1.Value)('cell.security.loginPage'),
|
|
51
|
-
__metadata("design:type", String)
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
52
44
|
], AuthenticationErrorHandler.prototype, "loginPage", void 0);
|
|
53
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
54
46
|
(0, core_1.Autowired)(node_1.RedirectStrategy),
|
|
55
|
-
__metadata("design:type", Object)
|
|
47
|
+
tslib_1.__metadata("design:type", Object)
|
|
56
48
|
], AuthenticationErrorHandler.prototype, "redirectStrategy", void 0);
|
|
57
|
-
__decorate([
|
|
49
|
+
tslib_1.__decorate([
|
|
58
50
|
(0, core_1.Autowired)(cache_1.RequestCache),
|
|
59
|
-
__metadata("design:type", Object)
|
|
51
|
+
tslib_1.__metadata("design:type", Object)
|
|
60
52
|
], AuthenticationErrorHandler.prototype, "requestCache", void 0);
|
|
61
|
-
AuthenticationErrorHandler = __decorate([
|
|
53
|
+
AuthenticationErrorHandler = tslib_1.__decorate([
|
|
62
54
|
(0, core_1.Component)(node_1.ErrorHandler)
|
|
63
55
|
], AuthenticationErrorHandler);
|
|
64
56
|
exports.AuthenticationErrorHandler = AuthenticationErrorHandler;
|
|
@@ -74,7 +66,7 @@ let AccessDeniedErrorHandler = class AccessDeniedErrorHandler {
|
|
|
74
66
|
ctx.response.end(err.message);
|
|
75
67
|
}
|
|
76
68
|
};
|
|
77
|
-
AccessDeniedErrorHandler = __decorate([
|
|
69
|
+
AccessDeniedErrorHandler = tslib_1.__decorate([
|
|
78
70
|
(0, core_1.Component)(node_1.ErrorHandler)
|
|
79
71
|
], AccessDeniedErrorHandler);
|
|
80
72
|
exports.AccessDeniedErrorHandler = AccessDeniedErrorHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../src/node/error/error-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../src/node/error/error-handler.ts"],"names":[],"mappings":";;;;AAAA,qDAA+G;AAC/G,mCAAiE;AACjE,+CAA+E;AAC/E,uCAA2D;AAC3D,uCAAyE;AACzE,oCAAwC;AAGjC,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAAhC;QACM,aAAQ,GAAW,sDAAqC,CAAC;IAkCtE,CAAC;IAjBG,SAAS,CAAC,GAAY,EAAE,GAAU;QAC9B,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,YAAY,2BAAmB,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,GAAwB;QAC/C,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAW,CAAC,gBAAgB,CAAC,KAAK,uBAAgB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACzF,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;YAC/B,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACjD,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACjC;aAAM;YACH,IAAI,IAAI,CAAC,WAAW,EAAE;gBAClB,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,kBAAW,CAAC,gBAAgB,EAAE,gBAAgB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;aACvF;YACD,GAAG,CAAC,QAAQ,CAAC,UAAU,GAAG,iBAAU,CAAC,YAAY,CAAC;YAClD,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SACjC;IACL,CAAC;CACJ,CAAA;AAhCG;IAAC,IAAA,YAAK,EAAC,2BAA2B,CAAC;;yDACX;AAExB;IAAC,IAAA,YAAK,EAAC,6BAA6B,CAAC;;+DACG;AAExC;IAAC,IAAA,YAAK,EAAC,yBAAyB,CAAC;;6DACL;AAE5B;IAAC,IAAA,gBAAS,EAAC,uBAAgB,CAAC;;oEAC0B;AAEtD;IAAC,IAAA,gBAAS,EAAC,oBAAY,CAAC;;gEACsB;AAhBrC,0BAA0B;IADtC,IAAA,gBAAS,EAAC,mBAAY,CAAC;GACX,0BAA0B,CAmCtC;AAnCY,gEAA0B;AAsChC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACM,aAAQ,GAAW,qDAAoC,CAAC;IAUrE,CAAC;IARG,SAAS,CAAC,GAAY,EAAE,GAAU;QAC9B,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,YAAY,yBAAiB,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,GAAsB;QAC7C,GAAG,CAAC,QAAQ,CAAC,UAAU,GAAG,iBAAU,CAAC,SAAS,CAAC;QAC/C,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CACJ,CAAA;AAXY,wBAAwB;IADpC,IAAA,gBAAS,EAAC,mBAAY,CAAC;GACX,wBAAwB,CAWpC;AAXY,4DAAwB"}
|
package/lib/node/error/index.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./error
|
|
19
|
-
__exportStar(require("./error-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./error"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./error-handler"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./error-protocol"), exports);
|
|
20
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/error/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/error/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,0DAAgC;AAChC,2DAAiC"}
|
package/lib/node/index.js
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./authentication"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./context"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./crypto"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./error"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./user"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./access"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./annotation"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./constants"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./logout"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./cache"), exports);
|
|
27
14
|
//# sourceMappingURL=index.js.map
|
package/lib/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,oDAA0B;AAC1B,mDAAyB;AACzB,kDAAwB;AACxB,iDAAuB;AACvB,mDAAyB;AACzB,uDAA6B;AAC7B,sDAA4B;AAC5B,mDAAyB;AACzB,kDAAwB"}
|
package/lib/node/logout/index.js
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./logout-
|
|
19
|
-
__exportStar(require("./logout-
|
|
20
|
-
__exportStar(require("./logout-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./logout-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./logout-middleware"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./logout-handler"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./logout-success-handler"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/logout/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/logout/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,8DAAoC;AACpC,2DAAiC;AACjC,mEAAyC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.SecurityContextLogoutHandler = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const logout_protocol_1 = require("./logout-protocol");
|
|
11
6
|
const core_1 = require("@celljs/core");
|
|
12
7
|
const context_1 = require("../context");
|
|
@@ -15,7 +10,7 @@ let SecurityContextLogoutHandler = class SecurityContextLogoutHandler {
|
|
|
15
10
|
context_1.SecurityContext.setCurrent(undefined);
|
|
16
11
|
}
|
|
17
12
|
};
|
|
18
|
-
SecurityContextLogoutHandler = __decorate([
|
|
13
|
+
SecurityContextLogoutHandler = tslib_1.__decorate([
|
|
19
14
|
(0, core_1.Component)(logout_protocol_1.LogoutHandler)
|
|
20
15
|
], SecurityContextLogoutHandler);
|
|
21
16
|
exports.SecurityContextLogoutHandler = SecurityContextLogoutHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-handler.js","sourceRoot":"","sources":["../../../src/node/logout/logout-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout-handler.js","sourceRoot":"","sources":["../../../src/node/logout/logout-handler.ts"],"names":[],"mappings":";;;;AAAA,uDAAkD;AAClD,uCAAyC;AACzC,wCAA6C;AAGtC,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAErC,KAAK,CAAC,MAAM;QACR,yBAAe,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;CAEJ,CAAA;AANY,4BAA4B;IADxC,IAAA,gBAAS,EAAC,+BAAa,CAAC;GACZ,4BAA4B,CAMxC;AANY,oEAA4B"}
|