@adonoustech/bacon-core 1.9.6 → 1.9.8
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/cjs/base/BaconBaseActor.js +2 -3
- package/dist/cjs/base/BaconBaseActorFactory.js +2 -3
- package/dist/cjs/base/BaconBaseGlobalAuthSvc.js +3 -3
- package/dist/cjs/concrete/Bacon3PClient.js +3 -3
- package/dist/cjs/concrete/BaconSP.js +3 -3
- package/dist/cjs/concrete/BaconSuperAdmin.js +3 -3
- package/dist/cjs/enums/bacon-actor-init-trig-sources.js +31 -0
- package/dist/cjs/enums/bacon-aws-regions.js +31 -0
- package/dist/cjs/enums/index.js +3 -1
- package/dist/cjs/interfaces/i-actor-init-trig-ctx.js +3 -0
- package/dist/cjs/interfaces/i-actor-init-trig-req.js +3 -0
- package/dist/cjs/interfaces/i-actor-init-trig-user-attr.js +3 -0
- package/dist/cjs/interfaces/i-actor-init-trigger-evt.js +3 -0
- package/dist/cjs/interfaces/index.js +5 -1
- package/dist/cjs/static/Bacon3PClientFactory.js +3 -3
- package/dist/cjs/static/BaconSPFactory.js +3 -3
- package/dist/cjs/static/BaconSuperAdminFactory.js +3 -3
- package/dist/es/base/BaconBaseActor.js +2 -3
- package/dist/es/base/BaconBaseActorFactory.js +2 -3
- package/dist/es/base/BaconBaseGlobalAuthSvc.js +3 -3
- package/dist/es/concrete/Bacon3PClient.js +3 -3
- package/dist/es/concrete/BaconSP.js +3 -3
- package/dist/es/concrete/BaconSuperAdmin.js +3 -3
- package/dist/es/enums/bacon-actor-init-trig-sources.js +28 -0
- package/dist/es/enums/bacon-aws-regions.js +28 -0
- package/dist/es/enums/index.js +3 -1
- package/dist/es/interfaces/i-actor-init-trig-ctx.js +2 -0
- package/dist/es/interfaces/i-actor-init-trig-req.js +2 -0
- package/dist/es/interfaces/i-actor-init-trig-user-attr.js +2 -0
- package/dist/es/interfaces/i-actor-init-trigger-evt.js +2 -0
- package/dist/es/interfaces/index.js +5 -1
- package/dist/es/static/Bacon3PClientFactory.js +3 -3
- package/dist/es/static/BaconSPFactory.js +3 -3
- package/dist/es/static/BaconSuperAdminFactory.js +3 -3
- package/dist/types/base/BaconBaseActor.d.ts +2 -5
- package/dist/types/concrete/Bacon3PClient.d.ts +1 -2
- package/dist/types/concrete/BaconSP.d.ts +1 -2
- package/dist/types/concrete/BaconSuperAdmin.d.ts +1 -2
- package/dist/types/enums/bacon-actor-init-trig-sources.d.ts +26 -0
- package/dist/types/enums/bacon-aws-regions.d.ts +26 -0
- package/dist/types/enums/index.d.ts +2 -0
- package/dist/types/interfaces/i-actor-init-trig-ctx.d.ts +4 -0
- package/dist/types/interfaces/i-actor-init-trig-req.d.ts +4 -0
- package/dist/types/interfaces/i-actor-init-trig-user-attr.d.ts +3 -0
- package/dist/types/interfaces/i-actor-init-trigger-evt.d.ts +13 -0
- package/dist/types/interfaces/index.d.ts +4 -0
- package/dist/types/static/Bacon3PClientFactory.d.ts +1 -2
- package/dist/types/static/BaconSPFactory.d.ts +1 -2
- package/dist/types/static/BaconSuperAdminFactory.d.ts +1 -2
- package/package.json +2 -2
- package/src/base/BaconBaseActor.ts +2 -7
- package/src/base/BaconBaseActorFactory.ts +1 -4
- package/src/base/BaconBaseGlobalAuthSvc.ts +2 -2
- package/src/concrete/Bacon3PClient.ts +2 -3
- package/src/concrete/BaconSP.ts +2 -4
- package/src/concrete/BaconSuperAdmin.ts +2 -3
- package/src/enums/bacon-actor-init-trig-sources.ts +26 -0
- package/src/enums/bacon-aws-regions.ts +26 -0
- package/src/enums/index.ts +2 -0
- package/src/interfaces/i-actor-init-trig-ctx.ts +4 -0
- package/src/interfaces/i-actor-init-trig-req.ts +5 -0
- package/src/interfaces/i-actor-init-trig-user-attr.ts +3 -0
- package/src/interfaces/i-actor-init-trigger-evt.ts +14 -0
- package/src/interfaces/index.ts +4 -0
- package/src/static/Bacon3PClientFactory.ts +2 -3
- package/src/static/BaconSPFactory.ts +2 -2
- package/src/static/BaconSuperAdminFactory.ts +2 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1hY3Rvci1pbml0LXRyaWctdXNlci1hdHRyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ludGVyZmFjZXMvaS1hY3Rvci1pbml0LXRyaWctdXNlci1hdHRyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElCYWNvbkFjdG9ySW5pdFRyaWdVc2VyQXR0ciB7XHJcbiAgICBba2V5OiBzdHJpbmddOiBTdHJpbmdcclxufSJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1hY3Rvci1pbml0LXRyaWdnZXItZXZ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ludGVyZmFjZXMvaS1hY3Rvci1pbml0LXRyaWdnZXItZXZ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYWNvbkFjdG9ySW5pdFRyaWdnZXJTb3VyY2VzLCBCYWNvbkFXU1JlZ2lvbnMgfSBmcm9tIFwiLi4vZW51bXNcIjtcclxuaW1wb3J0IHsgSUJhY29uQWN0b3JJbml0VHJpZ0N0eCB9IGZyb20gXCIuL2ktYWN0b3ItaW5pdC10cmlnLWN0eFwiO1xyXG5pbXBvcnQgeyBJQmFjb25BY3RvckluaXRUcmlnUmVxIH0gZnJvbSBcIi4vaS1hY3Rvci1pbml0LXRyaWctcmVxXCI7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElCYWNvbkFjdG9ySW5pdFRyaWdnZXJFdmVudCB7XHJcbiAgICB2ZXJpb246IHN0cmluZztcclxuICAgIHRyaWdnZXJTb3VyY2U6IEJhY29uQWN0b3JJbml0VHJpZ2dlclNvdXJjZXM7XHJcbiAgICByZWdpb246IEJhY29uQVdTUmVnaW9ucztcclxuICAgIHVzZXJQb29sSWQ6IHN0cmluZztcclxuICAgIHVzZXJOYW1lOiBzdHJpbmc7XHJcbiAgICBjYWxsZXJDb250ZXh0OiBJQmFjb25BY3RvckluaXRUcmlnQ3R4O1xyXG4gICAgcmVxdWVzdDogSUJhY29uQWN0b3JJbml0VHJpZ1JlcTtcclxuICAgIHJlc3BvbnNlOiBhbnk7XHJcbn0iXX0=
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './i-actor-init-status';
|
|
2
|
+
export * from './i-actor-init-trig-ctx';
|
|
3
|
+
export * from './i-actor-init-trig-req';
|
|
4
|
+
export * from './i-actor-init-trig-user-attr';
|
|
5
|
+
export * from './i-actor-init-trigger-evt';
|
|
2
6
|
export * from './i-actor-status';
|
|
3
7
|
export * from './i-oidc-address-claim';
|
|
4
8
|
export * from './i-oidc-profile';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ktYWN0b3ItaW5pdC1zdGF0dXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2ktYWN0b3ItaW5pdC10cmlnLWN0eCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vaS1hY3Rvci1pbml0LXRyaWctcmVxJztcclxuZXhwb3J0ICogZnJvbSAnLi9pLWFjdG9yLWluaXQtdHJpZy11c2VyLWF0dHInO1xyXG5leHBvcnQgKiBmcm9tICcuL2ktYWN0b3ItaW5pdC10cmlnZ2VyLWV2dCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vaS1hY3Rvci1zdGF0dXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2ktb2lkYy1hZGRyZXNzLWNsYWltJztcclxuZXhwb3J0ICogZnJvbSAnLi9pLW9pZGMtcHJvZmlsZSc7XHJcbiJdfQ==
|
|
@@ -6,11 +6,11 @@ var Bacon3PClientFactory = /** @class */ (function (_super) {
|
|
|
6
6
|
function Bacon3PClientFactory() {
|
|
7
7
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
8
|
}
|
|
9
|
-
Bacon3PClientFactory.createActor = function (profile
|
|
10
|
-
var actor = new Bacon3PClient(profile
|
|
9
|
+
Bacon3PClientFactory.createActor = function (profile) {
|
|
10
|
+
var actor = new Bacon3PClient(profile);
|
|
11
11
|
return actor;
|
|
12
12
|
};
|
|
13
13
|
return Bacon3PClientFactory;
|
|
14
14
|
}(BaconBaseActorFactory));
|
|
15
15
|
export { Bacon3PClientFactory };
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFjb24zUENsaWVudEZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc3RhdGljL0JhY29uM1BDbGllbnRGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN0RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFHMUQ7SUFBMEMsd0NBQXFCO0lBQS9EOztJQU9BLENBQUM7SUFMVSxnQ0FBVyxHQUFsQixVQUFtQixPQUFxQjtRQUNwQyxJQUFNLEtBQUssR0FBbUIsSUFBSSxhQUFhLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDekQsT0FBTyxLQUFLLENBQUM7SUFDakIsQ0FBQztJQUVMLDJCQUFDO0FBQUQsQ0FBQyxBQVBELENBQTBDLHFCQUFxQixHQU85RCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhY29uQmFzZUFjdG9yIH0gZnJvbSBcIi4uL2Jhc2UvQmFjb25CYXNlQWN0b3JcIjtcclxuaW1wb3J0IHsgQmFjb25CYXNlQWN0b3JGYWN0b3J5IH0gZnJvbSBcIi4uL2Jhc2UvQmFjb25CYXNlQWN0b3JGYWN0b3J5XCI7XHJcbmltcG9ydCB7IEJhY29uM1BDbGllbnQgfSBmcm9tIFwiLi4vY29uY3JldGUvQmFjb24zUENsaWVudFwiO1xyXG5pbXBvcnQgeyBJT0lEQ1Byb2ZpbGUgfSBmcm9tIFwiLi4vaW50ZXJmYWNlcy9pLW9pZGMtcHJvZmlsZVwiO1xyXG5cclxuZXhwb3J0IGNsYXNzIEJhY29uM1BDbGllbnRGYWN0b3J5IGV4dGVuZHMgQmFjb25CYXNlQWN0b3JGYWN0b3J5IHtcclxuXHJcbiAgICBzdGF0aWMgY3JlYXRlQWN0b3IocHJvZmlsZTogSU9JRENQcm9maWxlKTogQmFjb25CYXNlQWN0b3Ige1xyXG4gICAgICAgIGNvbnN0IGFjdG9yOiBCYWNvbkJhc2VBY3RvciA9IG5ldyBCYWNvbjNQQ2xpZW50KHByb2ZpbGUpO1xyXG4gICAgICAgIHJldHVybiBhY3RvcjtcclxuICAgIH1cclxuXHJcbn0iXX0=
|
|
@@ -6,11 +6,11 @@ var BaconSPFactory = /** @class */ (function (_super) {
|
|
|
6
6
|
function BaconSPFactory() {
|
|
7
7
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
8
|
}
|
|
9
|
-
BaconSPFactory.createActor = function (profile
|
|
10
|
-
var actor = new BaconSP(profile
|
|
9
|
+
BaconSPFactory.createActor = function (profile) {
|
|
10
|
+
var actor = new BaconSP(profile);
|
|
11
11
|
return actor;
|
|
12
12
|
};
|
|
13
13
|
return BaconSPFactory;
|
|
14
14
|
}(BaconBaseActorFactory));
|
|
15
15
|
export { BaconSPFactory };
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFjb25TUEZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc3RhdGljL0JhY29uU1BGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN0RSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFJOUM7SUFBb0Msa0NBQXFCO0lBQXpEOztJQU9BLENBQUM7SUFMVSwwQkFBVyxHQUFsQixVQUFtQixPQUFxQjtRQUNwQyxJQUFNLEtBQUssR0FBbUIsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDbkQsT0FBTyxLQUFLLENBQUM7SUFDakIsQ0FBQztJQUVMLHFCQUFDO0FBQUQsQ0FBQyxBQVBELENBQW9DLHFCQUFxQixHQU94RCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhY29uQmFzZUFjdG9yIH0gZnJvbSBcIi4uL2Jhc2UvQmFjb25CYXNlQWN0b3JcIjtcclxuaW1wb3J0IHsgQmFjb25CYXNlQWN0b3JGYWN0b3J5IH0gZnJvbSBcIi4uL2Jhc2UvQmFjb25CYXNlQWN0b3JGYWN0b3J5XCI7XHJcbmltcG9ydCB7IEJhY29uU1AgfSBmcm9tIFwiLi4vY29uY3JldGUvQmFjb25TUFwiO1xyXG5pbXBvcnQgeyBJT0lEQ1Byb2ZpbGUgfSBmcm9tIFwiLi4vaW50ZXJmYWNlcy9pLW9pZGMtcHJvZmlsZVwiO1xyXG5pbXBvcnQgeyBCYWNvbkFjdG9yU3RhdHVzZXMgfSBmcm9tIFwiLi4vZW51bXMvYmFjb24tYWN0b3Itc3RhdHVzZXNcIjtcclxuXHJcbmV4cG9ydCBjbGFzcyBCYWNvblNQRmFjdG9yeSBleHRlbmRzIEJhY29uQmFzZUFjdG9yRmFjdG9yeSB7XHJcblxyXG4gICAgc3RhdGljIGNyZWF0ZUFjdG9yKHByb2ZpbGU6IElPSURDUHJvZmlsZSk6IEJhY29uQmFzZUFjdG9yIHtcclxuICAgICAgICBjb25zdCBhY3RvcjogQmFjb25CYXNlQWN0b3IgPSBuZXcgQmFjb25TUChwcm9maWxlKTtcclxuICAgICAgICByZXR1cm4gYWN0b3I7XHJcbiAgICB9XHJcblxyXG59Il19
|
|
@@ -6,11 +6,11 @@ var BaconSuperAdminFactory = /** @class */ (function (_super) {
|
|
|
6
6
|
function BaconSuperAdminFactory() {
|
|
7
7
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8
8
|
}
|
|
9
|
-
BaconSuperAdminFactory.createActor = function (profile
|
|
10
|
-
var actor = new BaconSuperAdmin(profile
|
|
9
|
+
BaconSuperAdminFactory.createActor = function (profile) {
|
|
10
|
+
var actor = new BaconSuperAdmin(profile);
|
|
11
11
|
return actor;
|
|
12
12
|
};
|
|
13
13
|
return BaconSuperAdminFactory;
|
|
14
14
|
}(BaconBaseActorFactory));
|
|
15
15
|
export { BaconSuperAdminFactory };
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFjb25TdXBlckFkbWluRmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdGF0aWMvQmFjb25TdXBlckFkbWluRmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDdEUsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRzlEO0lBQTRDLDBDQUFxQjtJQUFqRTs7SUFPQSxDQUFDO0lBTFUsa0NBQVcsR0FBbEIsVUFBbUIsT0FBcUI7UUFDcEMsSUFBTSxLQUFLLEdBQW1CLElBQUksZUFBZSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQzNELE9BQU8sS0FBSyxDQUFDO0lBQ2pCLENBQUM7SUFFTCw2QkFBQztBQUFELENBQUMsQUFQRCxDQUE0QyxxQkFBcUIsR0FPaEUiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYWNvbkJhc2VBY3RvciB9IGZyb20gXCIuLi9iYXNlL0JhY29uQmFzZUFjdG9yXCI7XHJcbmltcG9ydCB7IEJhY29uQmFzZUFjdG9yRmFjdG9yeSB9IGZyb20gXCIuLi9iYXNlL0JhY29uQmFzZUFjdG9yRmFjdG9yeVwiO1xyXG5pbXBvcnQgeyBCYWNvblN1cGVyQWRtaW4gfSBmcm9tIFwiLi4vY29uY3JldGUvQmFjb25TdXBlckFkbWluXCI7XHJcbmltcG9ydCB7IElPSURDUHJvZmlsZSB9IGZyb20gXCIuLi9pbnRlcmZhY2VzL2ktb2lkYy1wcm9maWxlXCI7XHJcblxyXG5leHBvcnQgY2xhc3MgQmFjb25TdXBlckFkbWluRmFjdG9yeSBleHRlbmRzIEJhY29uQmFzZUFjdG9yRmFjdG9yeSB7XHJcblxyXG4gICAgc3RhdGljIGNyZWF0ZUFjdG9yKHByb2ZpbGU6IElPSURDUHJvZmlsZSk6IEJhY29uQmFzZUFjdG9yIHtcclxuICAgICAgICBjb25zdCBhY3RvcjogQmFjb25CYXNlQWN0b3IgPSBuZXcgQmFjb25TdXBlckFkbWluKHByb2ZpbGUpO1xyXG4gICAgICAgIHJldHVybiBhY3RvcjtcclxuICAgIH1cclxuXHJcbn0iXX0=
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { IBaconActorStatus } from "../interfaces/i-actor-status";
|
|
2
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
3
1
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
export declare abstract class BaconBaseActor implements IOIDCProfile
|
|
2
|
+
export declare abstract class BaconBaseActor implements IOIDCProfile {
|
|
5
3
|
sub: string;
|
|
6
4
|
name: string;
|
|
7
5
|
email: string;
|
|
8
|
-
|
|
9
|
-
constructor(profile: IOIDCProfile, actorStatus: BaconActorStatuses);
|
|
6
|
+
constructor(profile: IOIDCProfile);
|
|
10
7
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
export declare class Bacon3PClient extends BaconBaseActor {
|
|
5
|
-
constructor(profile: IOIDCProfile
|
|
4
|
+
constructor(profile: IOIDCProfile);
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
export declare class BaconSP extends BaconBaseActor {
|
|
5
|
-
constructor(profile: IOIDCProfile
|
|
4
|
+
constructor(profile: IOIDCProfile);
|
|
6
5
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
export declare class BaconSuperAdmin extends BaconBaseActor {
|
|
5
|
-
constructor(profile: IOIDCProfile
|
|
4
|
+
constructor(profile: IOIDCProfile);
|
|
6
5
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const enum BaconActorInitTriggerSources {
|
|
2
|
+
PreSignUp_SignUp = 0,
|
|
3
|
+
PreSignUp_AdminCreateUser = 1,
|
|
4
|
+
PreSignUp_ExternalProvider = 2,
|
|
5
|
+
PostConfirmation_ConfirmSignUp = 3,
|
|
6
|
+
PostConfirmation_ConfirmForgotPassword = 4,
|
|
7
|
+
PreAuthentication_Authentication = 5,
|
|
8
|
+
PostAuthentication_Authentication = 6,
|
|
9
|
+
DefineAuthChallenge_Authentication = 7,
|
|
10
|
+
CreateAuthChallenge_Authentication = 8,
|
|
11
|
+
VerifyAuthChallengeResponse_Authentication = 9,
|
|
12
|
+
TokenGeneration_HostedAuth = 10,
|
|
13
|
+
TokenGeneration_Authentication = 11,
|
|
14
|
+
TokenGeneration_NewPasswordChallenge = 12,
|
|
15
|
+
TokenGeneration_AuthenticateDevice = 13,
|
|
16
|
+
TokenGeneration_RefreshTokens = 14,
|
|
17
|
+
UserMigration_Authentication = 15,
|
|
18
|
+
UserMigration_ForgotPassword = 16,
|
|
19
|
+
CustomMessage_SignUp = 17,
|
|
20
|
+
CustomMessage_AdminCreateUser = 18,
|
|
21
|
+
CustomMessage_ResendCode = 19,
|
|
22
|
+
CustomMessage_ForgotPassword = 20,
|
|
23
|
+
CustomMessage_UpdateUserAttribute = 21,
|
|
24
|
+
CustomMessage_VerifyUserAttribute = 22,
|
|
25
|
+
CustomMessage_Authentication = 23
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const enum BaconAWSRegions {
|
|
2
|
+
'us-east-1' = 0,
|
|
3
|
+
'us-east-2' = 1,
|
|
4
|
+
'us-west-1' = 2,
|
|
5
|
+
'us-west-2' = 3,
|
|
6
|
+
'af-south-1' = 4,
|
|
7
|
+
'ap-east-1' = 5,
|
|
8
|
+
'ap-southeast-3' = 6,
|
|
9
|
+
'ap-south-1' = 7,
|
|
10
|
+
'ap-northeast-3' = 8,
|
|
11
|
+
'ap-northeast-2' = 9,
|
|
12
|
+
'ap-southeast-1' = 10,
|
|
13
|
+
'ap-southeast-2' = 11,
|
|
14
|
+
'ap-northeast-1' = 12,
|
|
15
|
+
'ca-central-1' = 13,
|
|
16
|
+
'eu-central-1' = 14,
|
|
17
|
+
'eu-west-1' = 15,
|
|
18
|
+
'eu-west-2' = 16,
|
|
19
|
+
'eu-south-1' = 17,
|
|
20
|
+
'eu-west-3' = 18,
|
|
21
|
+
'eu-north-1' = 19,
|
|
22
|
+
'me-south-1' = 20,
|
|
23
|
+
'sa-east-1' = 21,
|
|
24
|
+
'us-gov-east-1' = 22,
|
|
25
|
+
'us-gov-west-1' = 23
|
|
26
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './bacon-actor-init-statuses';
|
|
2
|
+
export * from './bacon-actor-init-trig-sources';
|
|
2
3
|
export * from './bacon-actor-oidc-props';
|
|
3
4
|
export * from './bacon-actor-statuses';
|
|
4
5
|
export * from './bacon-actor-types';
|
|
5
6
|
export * from './bacon-aws-data-req-instructions';
|
|
7
|
+
export * from './bacon-aws-regions';
|
|
6
8
|
export * from './bacon-bl-kinds';
|
|
7
9
|
export * from './bacon-data-layer-kinds';
|
|
8
10
|
export * from './bacon-logger-codes';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaconActorInitTriggerSources, BaconAWSRegions } from "../enums";
|
|
2
|
+
import { IBaconActorInitTrigCtx } from "./i-actor-init-trig-ctx";
|
|
3
|
+
import { IBaconActorInitTrigReq } from "./i-actor-init-trig-req";
|
|
4
|
+
export interface IBaconActorInitTriggerEvent {
|
|
5
|
+
verion: string;
|
|
6
|
+
triggerSource: BaconActorInitTriggerSources;
|
|
7
|
+
region: BaconAWSRegions;
|
|
8
|
+
userPoolId: string;
|
|
9
|
+
userName: string;
|
|
10
|
+
callerContext: IBaconActorInitTrigCtx;
|
|
11
|
+
request: IBaconActorInitTrigReq;
|
|
12
|
+
response: any;
|
|
13
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './i-actor-init-status';
|
|
2
|
+
export * from './i-actor-init-trig-ctx';
|
|
3
|
+
export * from './i-actor-init-trig-req';
|
|
4
|
+
export * from './i-actor-init-trig-user-attr';
|
|
5
|
+
export * from './i-actor-init-trigger-evt';
|
|
2
6
|
export * from './i-actor-status';
|
|
3
7
|
export * from './i-oidc-address-claim';
|
|
4
8
|
export * from './i-oidc-profile';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
2
|
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
3
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
5
4
|
export declare class Bacon3PClientFactory extends BaconBaseActorFactory {
|
|
6
|
-
static createActor(profile: IOIDCProfile
|
|
5
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
7
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
2
|
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
3
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
5
4
|
export declare class BaconSPFactory extends BaconBaseActorFactory {
|
|
6
|
-
static createActor(profile: IOIDCProfile
|
|
5
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
7
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
2
2
|
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
3
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
5
4
|
export declare class BaconSuperAdminFactory extends BaconBaseActorFactory {
|
|
6
|
-
static createActor(profile: IOIDCProfile
|
|
5
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor;
|
|
7
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonoustech/bacon-core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
6
6
|
"build:es": "tsc -p tsconfig.es.json",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"bugs": {
|
|
48
48
|
"url": "https://github.com/AdonousTech/bacon-core/issues"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d408dc58fc6d8efb4bf90fd8069ce2bc81523241"
|
|
51
51
|
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { IBaconActorStatus } from "../interfaces/i-actor-status";
|
|
2
1
|
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
|
|
5
|
-
export abstract class BaconBaseActor implements IOIDCProfile
|
|
4
|
+
export abstract class BaconBaseActor implements IOIDCProfile {
|
|
6
5
|
|
|
7
6
|
sub: string;
|
|
8
7
|
name: string;
|
|
9
8
|
email: string;
|
|
10
|
-
|
|
11
|
-
actorStatus: BaconActorStatuses;
|
|
12
9
|
|
|
13
|
-
constructor(profile: IOIDCProfile
|
|
14
|
-
actorStatus: BaconActorStatuses) {
|
|
10
|
+
constructor(profile: IOIDCProfile) {
|
|
15
11
|
|
|
16
12
|
this.sub = profile.sub;
|
|
17
13
|
this.name = profile.name;
|
|
18
14
|
this.email = profile.email;
|
|
19
|
-
this.actorStatus = actorStatus;
|
|
20
15
|
|
|
21
16
|
}
|
|
22
17
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "..";
|
|
2
1
|
import { BaconSuperAdmin } from "../concrete/BaconSuperAdmin";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
import { BaconBaseActor } from "./BaconBaseActor";
|
|
@@ -23,9 +22,7 @@ export abstract class BaconBaseActorFactory {
|
|
|
23
22
|
phone_number: ''
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const bsa: BaconSuperAdmin = new BaconSuperAdmin(defaultProfile, defaultStatus);
|
|
25
|
+
const bsa: BaconSuperAdmin = new BaconSuperAdmin(defaultProfile);
|
|
29
26
|
return bsa;
|
|
30
27
|
}
|
|
31
28
|
}
|
|
@@ -30,10 +30,10 @@ export abstract class BaconBaseGlobalAuthService {
|
|
|
30
30
|
|
|
31
31
|
switch (actorType) {
|
|
32
32
|
case BaconActorTypes.BACON_SUPER_ADMIN:
|
|
33
|
-
actor = BaconSuperAdminFactory.createActor(_profile
|
|
33
|
+
actor = BaconSuperAdminFactory.createActor(_profile);
|
|
34
34
|
break;
|
|
35
35
|
case BaconActorTypes.BACON_SP:
|
|
36
|
-
actor = BaconSPFactory.createActor( _profile
|
|
36
|
+
actor = BaconSPFactory.createActor( _profile );
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
|
|
5
4
|
export class Bacon3PClient extends BaconBaseActor {
|
|
6
|
-
constructor(profile: IOIDCProfile
|
|
7
|
-
super(profile
|
|
5
|
+
constructor(profile: IOIDCProfile) {
|
|
6
|
+
super(profile)
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
//TODO: Implement
|
package/src/concrete/BaconSP.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
|
|
5
4
|
export class BaconSP extends BaconBaseActor {
|
|
6
|
-
constructor(profile: IOIDCProfile
|
|
7
|
-
|
|
8
|
-
super(profile, status)
|
|
5
|
+
constructor(profile: IOIDCProfile) {
|
|
6
|
+
super(profile)
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
//TODO: Implement
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
2
1
|
import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
3
2
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
4
3
|
|
|
5
4
|
export class BaconSuperAdmin extends BaconBaseActor {
|
|
6
|
-
constructor(profile: IOIDCProfile
|
|
7
|
-
super(profile
|
|
5
|
+
constructor(profile: IOIDCProfile) {
|
|
6
|
+
super(profile)
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
//TODO: Implement
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const enum BaconActorInitTriggerSources {
|
|
2
|
+
PreSignUp_SignUp,
|
|
3
|
+
PreSignUp_AdminCreateUser,
|
|
4
|
+
PreSignUp_ExternalProvider,
|
|
5
|
+
PostConfirmation_ConfirmSignUp,
|
|
6
|
+
PostConfirmation_ConfirmForgotPassword,
|
|
7
|
+
PreAuthentication_Authentication,
|
|
8
|
+
PostAuthentication_Authentication,
|
|
9
|
+
DefineAuthChallenge_Authentication,
|
|
10
|
+
CreateAuthChallenge_Authentication,
|
|
11
|
+
VerifyAuthChallengeResponse_Authentication,
|
|
12
|
+
TokenGeneration_HostedAuth,
|
|
13
|
+
TokenGeneration_Authentication,
|
|
14
|
+
TokenGeneration_NewPasswordChallenge,
|
|
15
|
+
TokenGeneration_AuthenticateDevice,
|
|
16
|
+
TokenGeneration_RefreshTokens,
|
|
17
|
+
UserMigration_Authentication,
|
|
18
|
+
UserMigration_ForgotPassword,
|
|
19
|
+
CustomMessage_SignUp,
|
|
20
|
+
CustomMessage_AdminCreateUser,
|
|
21
|
+
CustomMessage_ResendCode,
|
|
22
|
+
CustomMessage_ForgotPassword,
|
|
23
|
+
CustomMessage_UpdateUserAttribute,
|
|
24
|
+
CustomMessage_VerifyUserAttribute,
|
|
25
|
+
CustomMessage_Authentication
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const enum BaconAWSRegions {
|
|
2
|
+
'us-east-1',
|
|
3
|
+
'us-east-2',
|
|
4
|
+
'us-west-1',
|
|
5
|
+
'us-west-2',
|
|
6
|
+
'af-south-1',
|
|
7
|
+
'ap-east-1',
|
|
8
|
+
'ap-southeast-3',
|
|
9
|
+
'ap-south-1',
|
|
10
|
+
'ap-northeast-3',
|
|
11
|
+
'ap-northeast-2',
|
|
12
|
+
'ap-southeast-1',
|
|
13
|
+
'ap-southeast-2',
|
|
14
|
+
'ap-northeast-1',
|
|
15
|
+
'ca-central-1',
|
|
16
|
+
'eu-central-1',
|
|
17
|
+
'eu-west-1',
|
|
18
|
+
'eu-west-2',
|
|
19
|
+
'eu-south-1',
|
|
20
|
+
'eu-west-3',
|
|
21
|
+
'eu-north-1',
|
|
22
|
+
'me-south-1',
|
|
23
|
+
'sa-east-1',
|
|
24
|
+
'us-gov-east-1',
|
|
25
|
+
'us-gov-west-1'
|
|
26
|
+
}
|
package/src/enums/index.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './bacon-actor-init-statuses';
|
|
2
|
+
export * from './bacon-actor-init-trig-sources';
|
|
2
3
|
export * from './bacon-actor-oidc-props';
|
|
3
4
|
export * from './bacon-actor-statuses';
|
|
4
5
|
export * from './bacon-actor-types';
|
|
5
6
|
export * from './bacon-aws-data-req-instructions';
|
|
7
|
+
export * from './bacon-aws-regions';
|
|
6
8
|
export * from './bacon-bl-kinds';
|
|
7
9
|
export * from './bacon-data-layer-kinds';
|
|
8
10
|
export * from './bacon-logger-codes';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaconActorInitTriggerSources, BaconAWSRegions } from "../enums";
|
|
2
|
+
import { IBaconActorInitTrigCtx } from "./i-actor-init-trig-ctx";
|
|
3
|
+
import { IBaconActorInitTrigReq } from "./i-actor-init-trig-req";
|
|
4
|
+
|
|
5
|
+
export interface IBaconActorInitTriggerEvent {
|
|
6
|
+
verion: string;
|
|
7
|
+
triggerSource: BaconActorInitTriggerSources;
|
|
8
|
+
region: BaconAWSRegions;
|
|
9
|
+
userPoolId: string;
|
|
10
|
+
userName: string;
|
|
11
|
+
callerContext: IBaconActorInitTrigCtx;
|
|
12
|
+
request: IBaconActorInitTrigReq;
|
|
13
|
+
response: any;
|
|
14
|
+
}
|
package/src/interfaces/index.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './i-actor-init-status';
|
|
2
|
+
export * from './i-actor-init-trig-ctx';
|
|
3
|
+
export * from './i-actor-init-trig-req';
|
|
4
|
+
export * from './i-actor-init-trig-user-attr';
|
|
5
|
+
export * from './i-actor-init-trigger-evt';
|
|
2
6
|
export * from './i-actor-status';
|
|
3
7
|
export * from './i-oidc-address-claim';
|
|
4
8
|
export * from './i-oidc-profile';
|
|
@@ -2,12 +2,11 @@ import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
|
2
2
|
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
3
|
import { Bacon3PClient } from "../concrete/Bacon3PClient";
|
|
4
4
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
6
5
|
|
|
7
6
|
export class Bacon3PClientFactory extends BaconBaseActorFactory {
|
|
8
7
|
|
|
9
|
-
static createActor(profile: IOIDCProfile
|
|
10
|
-
const actor: BaconBaseActor = new Bacon3PClient(profile
|
|
8
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
9
|
+
const actor: BaconBaseActor = new Bacon3PClient(profile);
|
|
11
10
|
return actor;
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -6,8 +6,8 @@ import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
|
6
6
|
|
|
7
7
|
export class BaconSPFactory extends BaconBaseActorFactory {
|
|
8
8
|
|
|
9
|
-
static createActor(profile: IOIDCProfile
|
|
10
|
-
const actor: BaconBaseActor = new BaconSP(profile
|
|
9
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
10
|
+
const actor: BaconBaseActor = new BaconSP(profile);
|
|
11
11
|
return actor;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -2,12 +2,11 @@ import { BaconBaseActor } from "../base/BaconBaseActor";
|
|
|
2
2
|
import { BaconBaseActorFactory } from "../base/BaconBaseActorFactory";
|
|
3
3
|
import { BaconSuperAdmin } from "../concrete/BaconSuperAdmin";
|
|
4
4
|
import { IOIDCProfile } from "../interfaces/i-oidc-profile";
|
|
5
|
-
import { BaconActorStatuses } from "../enums/bacon-actor-statuses";
|
|
6
5
|
|
|
7
6
|
export class BaconSuperAdminFactory extends BaconBaseActorFactory {
|
|
8
7
|
|
|
9
|
-
static createActor(profile: IOIDCProfile
|
|
10
|
-
const actor: BaconBaseActor = new BaconSuperAdmin(profile
|
|
8
|
+
static createActor(profile: IOIDCProfile): BaconBaseActor {
|
|
9
|
+
const actor: BaconBaseActor = new BaconSuperAdmin(profile);
|
|
11
10
|
return actor;
|
|
12
11
|
}
|
|
13
12
|
|